mix format

This commit is contained in:
byte[] 2020-10-26 17:50:40 -04:00
parent 4cb00d1d0e
commit 51a0033f3c

View file

@ -177,7 +177,11 @@ 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{}),
def can?(
%User{role: "assistant", role_map: %{"Image" => "moderator"}},
:edit_metadata,
%Image{}
),
do: true
def can?(