diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2019-05-07 07:08:52 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-05-07 07:08:52 +0000 |
commit | 3371c1cb7102ec557065ea7e92b9f6fff9744bd1 (patch) | |
tree | 8421a6ac36b6318d96573c1325212a332d0aa847 /app/helpers | |
parent | 5925b5bbdb0ffddf4ab8be84b84747a65c2aec3c (diff) | |
parent | f07d445b0c3296b3070221ccd70443fba15ba708 (diff) | |
download | gitlab-ce-3371c1cb7102ec557065ea7e92b9f6fff9744bd1.tar.gz |
Merge branch 'instance_level_clusters' into 'master'
Instance level k8s clusters
See merge request gitlab-org/gitlab-ce!27196
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_settings_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_settings_helper.rb b/app/helpers/application_settings_helper.rb index 5995ef57e26..971d1052824 100644 --- a/app/helpers/application_settings_helper.rb +++ b/app/helpers/application_settings_helper.rb @@ -286,4 +286,8 @@ module ApplicationSettingsHelper def expanded_by_default? Rails.env.test? end + + def instance_clusters_enabled? + can?(current_user, :read_cluster, Clusters::Instance.new) + end end |