|
|
@@ -80,6 +80,10 @@ async function viewInvite(req, res, next) {
|
|
|
return ErrorController.notFound(req, res)
|
|
|
}
|
|
|
|
|
|
+ const groupSSOActive = (
|
|
|
+ await Modules.promises.hooks.fire('hasGroupSSOEnabled', subscription)
|
|
|
+ )?.[0]
|
|
|
+
|
|
|
let validationStatus = new Map()
|
|
|
if (userId) {
|
|
|
const personalSubscription =
|
|
|
@@ -92,10 +96,6 @@ async function viewInvite(req, res, next) {
|
|
|
personalSubscription.recurlySubscription_id &&
|
|
|
personalSubscription.recurlySubscription_id !== ''
|
|
|
|
|
|
- const groupSSOActive = (
|
|
|
- await Modules.promises.hooks.fire('hasGroupSSOEnabled', subscription)
|
|
|
- )?.[0]
|
|
|
-
|
|
|
if (subscription?.groupPolicy) {
|
|
|
if (!subscription.populated('groupPolicy')) {
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
|
@@ -178,6 +178,7 @@ async function viewInvite(req, res, next) {
|
|
|
accountExists: userByEmail != null,
|
|
|
emailAddress: invite.email,
|
|
|
user: { id: null },
|
|
|
+ groupSSOActive,
|
|
|
})
|
|
|
}
|
|
|
}
|