diff --git a/lib/philomena/users/ability.ex b/lib/philomena/users/ability.ex index 1cf88368..81b7bd67 100644 --- a/lib/philomena/users/ability.ex +++ b/lib/philomena/users/ability.ex @@ -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