mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-31 16:55:29 +02: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
|
do: true
|
||||||
|
|
||||||
# User link assistant actions
|
# 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
|
do: true
|
||||||
|
|
||||||
def can?(
|
def can?(
|
||||||
|
|
Loading…
Add table
Reference in a new issue