mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02: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:
@@ -10,6 +10,12 @@ function isProfessionalPlan(planCode) {
|
||||
)
|
||||
}
|
||||
|
||||
function isProfessionalGroupPlan(subscription) {
|
||||
const isProfessional = isProfessionalPlan(subscription.planCode)
|
||||
return subscription.groupPlan && isProfessional
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isProfessionalPlan,
|
||||
isProfessionalGroupPlan,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user