mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
already had that one
This commit is contained in:
parent
7a1cc312f3
commit
05c427e013
1 changed files with 0 additions and 1 deletions
|
@ -64,7 +64,6 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
|
||||
# Reveal anon users
|
||||
def can?(%User{role: "moderator"}, :reveal_anon, _object), do: true
|
||||
def can?(%User{role: "moderator"}, :show, :ip_address), do: true
|
||||
|
||||
# Edit posts and comments
|
||||
def can?(%User{role: "moderator"}, :edit, %Post{}), do: true
|
||||
|
|
Loading…
Reference in a new issue