From 2fcfa3a34423fc48df6886d966abec265a58a3db Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 9 Dec 2019 20:38:55 -0500 Subject: [PATCH] also allow merge --- lib/philomena/users/ability.ex | 1 + 1 file changed, 1 insertion(+) 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