mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +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{}),
|
def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit, %Image{}),
|
||||||
do: true
|
do: true
|
||||||
|
|
||||||
|
def can?(%User{role: "assistant", role_map: %{"Image" => "moderator"}}, :edit_metadata, %Image{}),
|
||||||
|
do: true
|
||||||
|
|
||||||
def can?(
|
def can?(
|
||||||
%User{role: "assistant", role_map: %{"Image" => "moderator"}},
|
%User{role: "assistant", role_map: %{"Image" => "moderator"}},
|
||||||
:edit_description,
|
:edit_description,
|
||||||
|
|
Loading…
Reference in a new issue