mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
description editing permission
This commit is contained in:
parent
be55b65063
commit
1b238f465f
1 changed files with 2 additions and 1 deletions
|
@ -42,9 +42,10 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
||||||
# View filters
|
# View filters
|
||||||
def can?(%User{role: "moderator"}, :show, %Filter{}), do: true
|
def can?(%User{role: "moderator"}, :show, %Filter{}), do: true
|
||||||
|
|
||||||
# View images
|
# Manage images
|
||||||
def can?(%User{role: "moderator"}, :show, %Image{}), do: true
|
def can?(%User{role: "moderator"}, :show, %Image{}), do: true
|
||||||
def can?(%User{role: "moderator"}, :hide, %Image{}), do: true
|
def can?(%User{role: "moderator"}, :hide, %Image{}), do: true
|
||||||
|
def can?(%User{role: "moderator"}, :edit_description, %Image{}), do: true
|
||||||
|
|
||||||
# View comments
|
# View comments
|
||||||
def can?(%User{role: "moderator"}, :show, %Comment{}), do: true
|
def can?(%User{role: "moderator"}, :show, %Comment{}), do: true
|
||||||
|
|
Loading…
Reference in a new issue