allow assistants to edit user links (derpibooru/philomena#176)

This commit is contained in:
byte[] 2020-09-05 23:14:29 -04:00
parent f0ccdea54c
commit 56487e3933

View file

@ -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?(