mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Allows assistants to update tags on deleted images (#58)
Co-authored-by: Raptorshy <raptorshy@gmail.com>
This commit is contained in:
parent
c6e0110f72
commit
cd91fd8c9e
1 changed files with 3 additions and 0 deletions
|
@ -177,6 +177,9 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit, %Image{}),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit_metadata, %Image{}),
|
||||
do: true
|
||||
|
||||
def can?(
|
||||
%User{role: "assistant", role_map: %{"Image" => "moderator"}},
|
||||
:edit_description,
|
||||
|
|
Loading…
Reference in a new issue