summaryrefslogtreecommitdiff
path: root/lib/sidebars/groups/menus/ci_cd_menu.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sidebars/groups/menus/ci_cd_menu.rb')
-rw-r--r--lib/sidebars/groups/menus/ci_cd_menu.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sidebars/groups/menus/ci_cd_menu.rb b/lib/sidebars/groups/menus/ci_cd_menu.rb
index f5bce57f496..a1f98b918e6 100644
--- a/lib/sidebars/groups/menus/ci_cd_menu.rb
+++ b/lib/sidebars/groups/menus/ci_cd_menu.rb
@@ -34,10 +34,8 @@ module Sidebars
)
end
- # TODO Proper policies, such as `read_group_runners`, should be implemented per
- # See https://gitlab.com/gitlab-org/gitlab/-/issues/334802
def show_runners?
- can?(context.current_user, :admin_group, context.group) &&
+ can?(context.current_user, :read_group_runners, context.group) &&
Feature.enabled?(:runner_list_group_view_vue_ui, context.group, default_enabled: :yaml)
end
end