From 51a0033f3c9a76df9f46768224f74424632152d4 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 26 Oct 2020 17:50:40 -0400 Subject: [PATCH] mix format --- lib/philomena/users/ability.ex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"}},