mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Allow mods to manage galleries (somewhat) (#84)
Co-authored-by: Parasprite <foalspeedahead@gmail.com>
This commit is contained in:
parent
0cf48f0eab
commit
c95a00911b
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,9 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
# Manage commissions
|
||||
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...
|
||||
|
||||
# Manage site notices
|
||||
|
|
Loading…
Reference in a new issue