Commit 9234ef4e authored by Eugenia Grieff's avatar Eugenia Grieff

Add admin_note permission in epics for group owner

parent e429aa0b
......@@ -4,6 +4,7 @@ class EpicPolicy < BasePolicy
delegate { @subject.group }
condition(:maintainer) { @subject.group.has_maintainer?(@user) }
condition(:owner) { @subject.group.has_owner?(@user) }
rule { can?(:read_epic) }.policy do
enable :read_epic_iid
......@@ -16,5 +17,5 @@ class EpicPolicy < BasePolicy
rule { can?(:create_note) }.enable :award_emoji
rule { maintainer }.enable :admin_note
rule { maintainer | owner }.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