diff --git a/lib/philomena/users/ability.ex b/lib/philomena/users/ability.ex index f30f116e..22c384b0 100644 --- a/lib/philomena/users/ability.ex +++ b/lib/philomena/users/ability.ex @@ -177,8 +177,12 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit, %Image{}), do: true - def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit_metadata, %Image{}), - do: true + def can?( + %User{role: "assistant", role_map: %{"Image" => "moderator"}}, + :edit_metadata, + %Image{} + ), + do: true def can?( %User{role: "assistant", role_map: %{"Image" => "moderator"}},