mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +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
|
def can?(%User{role: "moderator"}, :index, UserLink), do: true
|
||||||
|
|
||||||
# Reveal anon users
|
# 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...
|
# Assistants can...
|
||||||
|
|
Loading…
Reference in a new issue