mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
mix format
This commit is contained in:
parent
4cb00d1d0e
commit
51a0033f3c
1 changed files with 6 additions and 2 deletions
|
@ -177,7 +177,11 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
||||||
def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit, %Image{}),
|
def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit, %Image{}),
|
||||||
do: true
|
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
|
do: true
|
||||||
|
|
||||||
def can?(
|
def can?(
|
||||||
|
|
Loading…
Reference in a new issue