Moderators can only hide screenshots - not delete them
This commit is contained in:
parent
43e6e6c028
commit
632939cfa4
1 changed files with 1 additions and 1 deletions
|
|
@ -49,8 +49,8 @@ class Ability
|
|||
end
|
||||
if user.moderator_role?
|
||||
can :approve, Screenshot
|
||||
can :hide, Screenshot
|
||||
can :view, Screenshot
|
||||
can :destroy, Screenshot
|
||||
end
|
||||
else # Nobody logged in
|
||||
can :view, Screenshot, approved: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue