mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
allow assistants to edit user links (derpibooru/philomena#176)
This commit is contained in:
parent
f0ccdea54c
commit
56487e3933
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
do: true
|
||||
|
||||
# User link assistant actions
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :show, %UserLink{}),
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, _action, %UserLink{}),
|
||||
do: true
|
||||
|
||||
def can?(
|
||||
|
|
Loading…
Reference in a new issue