mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
fix permission
This commit is contained in:
parent
2d9d32af81
commit
b6d4c38979
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
def can?(%User{role: "moderator"}, :index, UserLink), do: true
|
||||
|
||||
# Reveal anon users
|
||||
def can?(%User{role: "moderator"}, :reveal_anon, %User{}), do: true
|
||||
def can?(%User{role: "moderator"}, :reveal_anon, _object), do: true
|
||||
|
||||
#
|
||||
# Assistants can...
|
||||
|
|
Loading…
Reference in a new issue