Add revoke all actions to received blocks resource

This commit is contained in:
Anton Khorev 2024-12-24 07:50:29 +03:00
parent 2df389c97e
commit df1c59280f
10 changed files with 120 additions and 115 deletions

View file

@ -56,7 +56,7 @@ class Ability
can [:read, :resolve, :ignore, :reopen], Issue
can :create, IssueComment
can [:create, :update, :destroy], Redaction
can [:create, :revoke_all], UserBlock
can [:create, :destroy], UserBlock
can :update, UserBlock, :creator => user
can :update, UserBlock, :revoker => user
can :update, UserBlock, :active? => true