diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-11-05 19:05:10 +0100 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-11-08 23:26:04 +1300 |
commit | 675bfd50a9483bfefea6a374c9d9024331a5c970 (patch) | |
tree | 27a0cae052b2f3de1dc461cf1f04d5ac717ac87b /app/helpers/groups_helper.rb | |
parent | a90320f792f9faefa3d5198e17b94f3acec7c6a5 (diff) | |
download | gitlab-ce-675bfd50a9483bfefea6a374c9d9024331a5c970.tar.gz |
Adds feature flag for Group Clusters
As the frontend is still in progress and other related backend is still
in prgress we need a feature flag to turn off Group Clusters.
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r-- | app/helpers/groups_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index a939a0ae56d..e9b9b9b7721 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -140,7 +140,7 @@ module GroupsHelper can?(current_user, "read_group_#{resource}".to_sym, @group) end - if can?(current_user, :read_cluster, @group) + if can?(current_user, :read_cluster, @group) && Feature.enabled?(:group_clusters) links << :kubernetes end |