mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
fix: make it so moderators can delete tag changes too
This commit is contained in:
parent
fe8395da99
commit
9ec25a05ec
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
||||||
|
|
||||||
# Revert tag changes
|
# Revert tag changes
|
||||||
def can?(%User{role: "moderator"}, :revert, TagChange), do: true
|
def can?(%User{role: "moderator"}, :revert, TagChange), do: true
|
||||||
|
def can?(%User{role: "moderator"}, :delete, %TagChange{}), do: true
|
||||||
|
|
||||||
# Manage commissions
|
# Manage commissions
|
||||||
def can?(%User{role: "moderator"}, _action, %Commission{}), do: true
|
def can?(%User{role: "moderator"}, _action, %Commission{}), do: true
|
||||||
|
|
Loading…
Reference in a new issue