mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
mix format
This commit is contained in:
parent
4cb00d1d0e
commit
51a0033f3c
1 changed files with 6 additions and 2 deletions
|
@ -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"}},
|
||||
|
|
Loading…
Reference in a new issue