Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c11ba136
Commit
c11ba136
authored
Sep 04, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove broken memoization in LicenseHelper#show_promotions?
parent
5a0c0e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
app/helpers/license_helper.rb
app/helpers/license_helper.rb
+7
-9
No files found.
app/helpers/license_helper.rb
View file @
c11ba136
...
...
@@ -77,15 +77,13 @@ module LicenseHelper
def
show_promotions?
(
selected_user
=
current_user
)
return
false
unless
selected_user
return
@show_promotions
if
defined?
(
@show_promotions
)
@show_promotions
=
if
current_application_settings
.
should_check_namespace_plan?
true
else
license
=
License
.
current
license
.
nil?
||
license
.
expired?
end
if
current_application_settings
.
should_check_namespace_plan?
true
else
license
=
License
.
current
license
.
nil?
||
license
.
expired?
end
end
def
show_project_feature_promotion?
(
project_feature
,
callout_id
=
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment