summaryrefslogtreecommitdiff
path: root/app/helpers/groups_helper.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2018-10-25 01:55:16 +1300
committerThong Kuah <tkuah@gitlab.com>2018-11-08 23:14:06 +1300
commit76991929855f2a9f801fa16f80ccebad28853dd8 (patch)
treebd9bd65f996f97e70a44bee192a2ff28bdc5affd /app/helpers/groups_helper.rb
parentdcf0caaa0656b421b5a80e45c4a3e14785cb269a (diff)
downloadgitlab-ce-76991929855f2a9f801fa16f80ccebad28853dd8.tar.gz
Adds Kubernetes sidebar for groups
As this is the only item in this menu, make Kubernetes the link for the sidebar item too.
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 0c313e9e6d3..a939a0ae56d 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -140,6 +140,10 @@ module GroupsHelper
can?(current_user, "read_group_#{resource}".to_sym, @group)
end
+ if can?(current_user, :read_cluster, @group)
+ links << :kubernetes
+ end
+
if can?(current_user, :admin_group, @group)
links << :settings
end