diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 03:39:07 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 03:39:07 +0100 |
commit | 8f942a0534384f73cfa8686a0c67ec6451c5c39b (patch) | |
tree | 6c94bdb247aa11896e9a47fc6e7476a10949a146 /app | |
parent | ad38e120069748049786373af1c2286cf9c849eb (diff) | |
download | gitlab-ce-8f942a0534384f73cfa8686a0c67ec6451c5c39b.tar.gz |
Use policies instead of role checks in ClustersHelper
Diffstat (limited to 'app')
-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 |