Commit a551758d authored by Thong Kuah's avatar Thong Kuah

Remove methods already provided by presenters

parent 8b805d93
...@@ -6,14 +6,6 @@ module ClustersHelper ...@@ -6,14 +6,6 @@ module ClustersHelper
false false
end end
def clusterable
@project || @group
end
def can_create_cluster?
can?(current_user, :create_cluster, clusterable)
end
def render_gcp_signup_offer def render_gcp_signup_offer
return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers? return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
return unless show_gcp_signup_offer? return unless show_gcp_signup_offer?
......
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