diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-11-29 03:50:19 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-12-05 00:16:44 +0300 |
commit | ebf87fd9c2e1c5bde72f2c08db0fff7e81882cb8 (patch) | |
tree | 453086b0791d9376dcfa1d10b841919b1d7cabaf /app/helpers/groups_helper.rb | |
parent | f85440e63c2eba453e09a5599f0d3e0491a037f1 (diff) |
Unify into :group_clusters feature flag
With this MR, group clusters is now functional, so default to enabled.
Have a single setting on the root ancestor group to enabled or disable
group clusters feature as a whole
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 e9b9b9b7721..866fc555856 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) && Feature.enabled?(:group_clusters) + if can?(current_user, :read_cluster, @group) && @group.group_clusters_enabled? links << :kubernetes end |