Commit 4157cad2 authored by Matija Čupić's avatar Matija Čupić

Extract feature name into constant

parent f2253d48
module CalloutsHelper module CalloutsHelper
def show_gke_cluster_integration_callout?(kube_feature_name, project) GKE_CLUSTER_INTEGRATION = 'gke_cluster_integration'.freeze
current_user && !user_dismissed?(kube_feature_name) &&
def show_gke_cluster_integration_callout?(project)
current_user && !user_dismissed?(GKE_CLUSTER_INTEGRATION) &&
(project.team.master?(current_user) || (project.team.master?(current_user) ||
current_user == project.owner) current_user == project.owner)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment