Use CanCanCan for user_roles auth

This commit is contained in:
Andy Allan 2018-11-28 17:20:13 +01:00
parent a790c47923
commit a3a10237f7
5 changed files with 30 additions and 17 deletions

View file

@ -34,6 +34,7 @@ class Ability
can [:hide, :hidecomment], [DiaryEntry, DiaryComment]
can [:index, :show, :resolve, :ignore, :reopen], Issue
can :create, IssueComment
can [:grant, :revoke], UserRole
end
end