mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-07 23:06:42 +01:00
mix format
This commit is contained in:
parent
3fdae6b99c
commit
22dfb51e56
1 changed files with 6 additions and 2 deletions
|
@ -250,8 +250,12 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
||||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :show, %UserLink{}),
|
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :show, %UserLink{}),
|
||||||
do: true
|
do: true
|
||||||
|
|
||||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :create_links, %User{}),
|
def can?(
|
||||||
do: true
|
%User{role: "assistant", role_map: %{"UserLink" => "moderator"}},
|
||||||
|
:create_links,
|
||||||
|
%User{}
|
||||||
|
),
|
||||||
|
do: true
|
||||||
|
|
||||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :edit, %UserLink{}),
|
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :edit, %UserLink{}),
|
||||||
do: true
|
do: true
|
||||||
|
|
Loading…
Reference in a new issue