Moderators can only hide screenshots - not delete them

This commit is contained in:
Christoph Haas 2021-03-09 22:55:22 +01:00
parent 43e6e6c028
commit 632939cfa4

View file

@ -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