From b6d4c389795df0051f278460d1bafb18cc172e45 Mon Sep 17 00:00:00 2001 From: Luna D Date: Tue, 10 Dec 2019 12:17:13 -0500 Subject: [PATCH] fix permission --- lib/philomena/users/ability.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...