diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 05:39:07 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 05:39:07 +0300 |
commit | 8f942a0534384f73cfa8686a0c67ec6451c5c39b (patch) | |
tree | 6c94bdb247aa11896e9a47fc6e7476a10949a146 /app/helpers | |
parent | ad38e120069748049786373af1c2286cf9c849eb (diff) |
Use policies instead of role checks in ClustersHelper
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/callouts_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/callouts_helper.rb b/app/helpers/callouts_helper.rb index 3841d288f52..168b731ae89 100644 --- a/app/helpers/callouts_helper.rb +++ b/app/helpers/callouts_helper.rb @@ -8,8 +8,7 @@ module CalloutsHelper def show_gke_cluster_integration_callout?(project) current_user && !user_dismissed?(GKE_CLUSTER_INTEGRATION) && - (project.team.master?(current_user) || - current_user == project.owner) + can?(current_user, :create_cluster, project) end private |