-
-
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
Create pages from question issues and gitter questions #204
Comments
Need to check what is in this course |
FAQ will be represented as a cookbook in the new docs |
empty conditions object behavior: {
"subject": "Financial",
"action": "read",
"fields": [
"salary",
"taxcode"
],
conditions: {}
},
{
"subject": "Financial",
"action": "read",
"inverted": true,
"fields": [
“salary"
],
conditions: {}
} Conditions are sometimes populated but in this case they are not. |
Tasks:
all
records Check for "all" entities instead of "at least one" #259Basics:
ability.can(['read', 'update'], 'Post')
ability.can('read', 'Post', { userId: 5 })
instance.constructor.modelName
#224)Advanced:
Security:
Persisted permissions (i.e., roles)
Use cases:
frontend
this.$ability
! (Updating Ability doesn't persist #210)Mongoose:
accessibleFields(ability)
, why cannot use.select(..)
to filter out disallowed fields (https://github.com/stalniy/casl-mongoose-example)Tests
backend
can('manage', 'Comment', { ??? <how to walk the object graph here> ???})
can('edit' , 'Post', { moderators: "contain user.id" })
The text was updated successfully, but these errors were encountered: