Commit 37bea9fa authored by Eugenia Grieff's avatar Eugenia Grieff

Add admin_note permissions to epics

parent 7156f624
......@@ -3,6 +3,8 @@
class EpicPolicy < BasePolicy
delegate { @subject.group }
condition(:maintainer) { @subject.group.has_maintainer?(@user) }
rule { can?(:read_epic) }.policy do
enable :read_epic_iid
enable :read_note
......@@ -13,4 +15,6 @@ class EpicPolicy < BasePolicy
end
rule { can?(:create_note) }.enable :award_emoji
rule { maintainer }.enable :admin_note
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment