mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
also allow merge
This commit is contained in:
parent
ca3afb26fd
commit
2fcfa3a344
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
||||||
|
|
||||||
# Manage duplicate reports
|
# Manage duplicate reports
|
||||||
def can?(%User{role: "moderator"}, :index, DuplicateReport), do: true
|
def can?(%User{role: "moderator"}, :index, DuplicateReport), do: true
|
||||||
|
def can?(%User{role: "moderator"}, :edit, %DuplicateReport{}), do: true
|
||||||
|
|
||||||
# Manage reports
|
# Manage reports
|
||||||
def can?(%User{role: "moderator"}, :index, Report), do: true
|
def can?(%User{role: "moderator"}, :index, Report), do: true
|
||||||
|
|
Loading…
Reference in a new issue