mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
allow moderators to add new streams
This commit is contained in:
parent
6915d2ed45
commit
f0ccdea54c
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
def can?(%User{role: "moderator"}, _action, Image), do: true
|
||||
def can?(%User{role: "moderator"}, _action, %Image{}), do: true
|
||||
|
||||
# Manage channels
|
||||
def can?(%User{role: "moderator"}, _action, Channel), do: true
|
||||
def can?(%User{role: "moderator"}, _action, %Channel{}), do: true
|
||||
|
||||
# View comments
|
||||
def can?(%User{role: "moderator"}, :show, %Comment{}), do: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue