diff --git a/lib/philomena/users/ability.ex b/lib/philomena/users/ability.ex index 2fdb17f3..741b0c52 100644 --- a/lib/philomena/users/ability.ex +++ b/lib/philomena/users/ability.ex @@ -49,6 +49,10 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do def can?(%User{role: "moderator"}, _action, Image), do: true def can?(%User{role: "moderator"}, _action, %Image{}), do: true + # Manage channels + def can?(%User{role: "moderator"}, _action, Channel), do: true + def can?(%User{role: "moderator"}, _action, %Channel{}), do: true + # View comments def can?(%User{role: "moderator"}, :show, %Comment{}), do: true