Allow mods to manage galleries (somewhat) (#84)

Co-authored-by: Parasprite <foalspeedahead@gmail.com>
This commit is contained in:
parasprite 2020-12-09 20:00:17 -06:00 committed by GitHub
parent 0cf48f0eab
commit c95a00911b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,9 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
# Manage commissions # Manage commissions
def can?(%User{role: "moderator"}, _action, %Commission{}), do: true def can?(%User{role: "moderator"}, _action, %Commission{}), do: true
# Manage galleries
def can?(%User{role: "moderator"}, _action, %Gallery{}), do: true
# And some privileged moderators can... # And some privileged moderators can...
# Manage site notices # Manage site notices