mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #17592 from overleaf/jel-sso-enrollment-page
[web] Return 403 on group SSO enrollment page if group does not have feature GitOrigin-RevId: ce6bbf69da2ff332ffa541f8febf8fb298ea743a
This commit is contained in:
parent
0a46d3632a
commit
3437ddb203
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ function isProfessionalPlan(planCode) {
|
|||
)
|
||||
}
|
||||
|
||||
function isProfessionalGroupPlan(subscription) {
|
||||
const isProfessional = isProfessionalPlan(subscription.planCode)
|
||||
return subscription.groupPlan && isProfessional
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isProfessionalPlan,
|
||||
isProfessionalGroupPlan,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue