fix permission

This commit is contained in:
Luna D 2019-12-10 12:17:13 -05:00
parent 2d9d32af81
commit b6d4c38979
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B

View file

@ -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...