This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creates better way or returning data in a familiar format (#234)
* Adds ability to verifyOrRestrict, populateOrRestrict, or hasRoleOrRestrict to either add a query restriction to the query params when the user is not authenticated or authorized or else leave the query unrestricted. * Now filters direct id routes. * Adds restriction hooks missing from git. * Fixes jshint errors. * Adds check to make sure restriction methods are only used for find and get methods. * Fixes jshint errors. * Fixes pagination in restriction hooks. * Fixes pagination issue.
- Loading branch information
1 parent
c971985
commit b5a2c74
Showing
3 changed files
with
26 additions
and
37 deletions.
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
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