diff options
Diffstat (limited to 'app/presenters/clusters/cluster_presenter.rb')
-rw-r--r-- | app/presenters/clusters/cluster_presenter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/clusters/cluster_presenter.rb b/app/presenters/clusters/cluster_presenter.rb index 7e6eccb648c..01e7ed92515 100644 --- a/app/presenters/clusters/cluster_presenter.rb +++ b/app/presenters/clusters/cluster_presenter.rb @@ -8,6 +8,10 @@ module Clusters "https://console.cloud.google.com/kubernetes/clusters/details/#{provider.zone}/#{name}" if gcp? end + def allow_project_namespace? + cluster.project_type? + end + def can_toggle_cluster? can?(current_user, :update_cluster, cluster) && created? end |