Use CanCanCan for user_roles auth
This commit is contained in:
parent
a790c47923
commit
a3a10237f7
5 changed files with 30 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue