mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +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{}),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :create_links, %User{}),
|
||||
do: true
|
||||
def can?(
|
||||
%User{role: "assistant", role_map: %{"UserLink" => "moderator"}},
|
||||
:create_links,
|
||||
%User{}
|
||||
),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :edit, %UserLink{}),
|
||||
do: true
|
||||
|
|
Loading…
Reference in a new issue