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
e2214baa
Commit
e2214baa
authored
Mar 17, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return billable seats href for paid groups only
parent
b39f2900
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ee/app/helpers/billing_plans_helper.rb
ee/app/helpers/billing_plans_helper.rb
+5
-2
No files found.
ee/app/helpers/billing_plans_helper.rb
View file @
e2214baa
...
...
@@ -155,8 +155,11 @@ module BillingPlansHelper
"
#{
EE
::
SUBSCRIPTIONS_URL
}
/gitlab/namespaces/
#{
group
.
id
}
/renew"
end
def
billable_seats_href
(
group
)
group_seat_usage_path
(
group
)
def
billable_seats_href
(
namespace
)
return
unless
namespace
.
group?
return
if
namespace
.
actual_plan_name
==
Plan
::
FREE
||
namespace
.
trial_active?
group_seat_usage_path
(
namespace
)
end
def
offer_from_previous_tier?
(
namespace_id
,
plan_id
)
...
...
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