Commit 62243e9e authored by Jason Goodman's avatar Jason Goodman

Remove requested_hosted_plan parameter from Group#user_cap_reached?

This parameter is never used
parent 2e872dc2
......@@ -481,13 +481,13 @@ module EE
::Feature.enabled?(:iteration_cadences, self, default_enabled: :yaml)
end
def user_cap_reached?(requested_hosted_plan = nil)
def user_cap_reached?
return false unless ::Feature.enabled?(:saas_user_caps, root_ancestor, default_enabled: :yaml)
user_cap = root_ancestor.namespace_settings&.new_user_signups_cap
return false unless user_cap
user_cap <= root_ancestor.billable_members_count(requested_hosted_plan)
user_cap <= root_ancestor.billable_members_count
end
def namespace_user_cap_reached_cache_key
......
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