diff --git a/lib/philomena/users/ability.ex b/lib/philomena/users/ability.ex index 3a2b9994..1b1ef2ab 100644 --- a/lib/philomena/users/ability.ex +++ b/lib/philomena/users/ability.ex @@ -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...