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:
Jessica Lawshe 2024-03-27 10:45:23 -05:00 committed by Copybot
parent 0a46d3632a
commit 3437ddb203

View file

@ -10,6 +10,12 @@ function isProfessionalPlan(planCode) {
)
}
function isProfessionalGroupPlan(subscription) {
const isProfessional = isProfessionalPlan(subscription.planCode)
return subscription.groupPlan && isProfessional
}
module.exports = {
isProfessionalPlan,
isProfessionalGroupPlan,
}