-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to check/define abilities per fields #18
Milestone
Comments
Typescript |
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
This function allows to extract permitted fields from Ability rules Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
… permittedFieldsOf This protects user from mistakes like passing rules of different subjects/actions into rulesToQuery. Also refactores toMongoQuery to have similar signature but a bit different, action goes as the last argument, so we can specify default action to be `read` (as in majority of cases this is what users will want) Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
@stalniy you are doing great job man! |
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
This function allows to extract permitted fields from Ability rules Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
… permittedFieldsOf This protects user from mistakes like passing rules of different subjects/actions into rulesToQuery. Also refactores toMongoQuery to have similar signature but a bit different, action goes as the last argument, so we can specify default action to be `read` (as in majority of cases this is what users will want) Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
This function allows to extract permitted fields from Ability rules Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
… permittedFieldsOf This protects user from mistakes like passing rules of different subjects/actions into rulesToQuery. Also refactores toMongoQuery to have similar signature but a bit different, action goes as the last argument, so we can specify default action to be `read` (as in majority of cases this is what users will want) Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
This function allows to extract permitted fields from Ability rules Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
… permittedFieldsOf This protects user from mistakes like passing rules of different subjects/actions into rulesToQuery. Also refactores toMongoQuery to have similar signature but a bit different, action goes as the last argument, so we can specify default action to be `read` (as in majority of cases this is what users will want) Relates to #18
stalniy
added a commit
that referenced
this issue
Mar 21, 2018
@Cholowao I glad that you find this useful :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rulesToQuery
functionIt should be possible to define/check abilities per field:
The text was updated successfully, but these errors were encountered: