forked from fratzinger/feathers-casl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes data filtering error when pagination is enabled
In the 'authorizeAfter' function, an incorrect definition of the data format when calling the 'feathersUtils.getItemsIsArray' function resulted in the 'isArray' variable being incorrectly set to 'false', which resulted in the 'getOrFind' variable being incorrectly set to 'get'. As a result, it affected incorrect data filtering when the user requests data using the 'find' method with pagination enabled and a restriction on allowed fields. Fix fratzinger#95
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters