also allow merge

This commit is contained in:
byte[] 2019-12-09 20:38:55 -05:00
parent ca3afb26fd
commit 2fcfa3a344

View file

@ -44,6 +44,7 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
# Manage duplicate reports
def can?(%User{role: "moderator"}, :index, DuplicateReport), do: true
def can?(%User{role: "moderator"}, :edit, %DuplicateReport{}), do: true
# Manage reports
def can?(%User{role: "moderator"}, :index, Report), do: true