diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 16:33:49 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 16:33:49 +0300 |
commit | a85b85e1d8e6a482af7d13477068e6ab976c4b25 (patch) | |
tree | 393e9e6d733ef43acb2517f277219f28ba5e0d9f /app | |
parent | c1e1f8070b5f41731bea4dab936690382bfb486e (diff) |
Refactor .show_gke_cluster_integration_callout?
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/user_callouts_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/user_callouts_helper.rb b/app/helpers/user_callouts_helper.rb index a292f676331..6368e248c6e 100644 --- a/app/helpers/user_callouts_helper.rb +++ b/app/helpers/user_callouts_helper.rb @@ -2,8 +2,8 @@ module UserCalloutsHelper GKE_CLUSTER_INTEGRATION = 'gke_cluster_integration'.freeze def show_gke_cluster_integration_callout?(project) - current_user && !user_dismissed?(GKE_CLUSTER_INTEGRATION) && - can?(current_user, :create_cluster, project) + can?(current_user, :create_cluster, project) && + !user_dismissed?(GKE_CLUSTER_INTEGRATION) end private |