Commit c11ba136 authored by Nick Thomas's avatar Nick Thomas

Remove broken memoization in LicenseHelper#show_promotions?

parent 5a0c0e15
...@@ -77,15 +77,13 @@ module LicenseHelper ...@@ -77,15 +77,13 @@ module LicenseHelper
def show_promotions?(selected_user = current_user) def show_promotions?(selected_user = current_user)
return false unless selected_user return false unless selected_user
return @show_promotions if defined?(@show_promotions)
if current_application_settings.should_check_namespace_plan?
@show_promotions = true
if current_application_settings.should_check_namespace_plan? else
true license = License.current
else license.nil? || license.expired?
license = License.current end
license.nil? || license.expired?
end
end end
def show_project_feature_promotion?(project_feature, callout_id = nil) def show_project_feature_promotion?(project_feature, callout_id = nil)
......
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