Skip to content

Commit

Permalink
Confirm that :manage and :all also apply to cannot
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbeck committed Feb 22, 2021
1 parent e9ca4ef commit c01fd3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/Defining-Abilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ You can pass `:manage` to represent any action and `:all` to represent any objec
can :manage, Article # user can perform any action on the article
can :read, :all # user can read any object
can :manage, :all # user can perform any action on any object
cannot :manage, :all # user cannot perform any action on any object
```

Common actions are `:read`, `:create`, `:update` and `:destroy` but it can be anything. See [[Action Aliases]] and [[Custom Actions]] for more information on actions.
Expand Down

0 comments on commit c01fd3e

Please sign in to comment.