mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #25965 from overleaf/jel-admin-ui-use-ukamf-settings
[web] Overleaf admin UI to toggle group SSO using UKAMF settings GitOrigin-RevId: c4f976d8125c9a8e549c049841f5d7b58edf8192
This commit is contained in:
@@ -45,6 +45,18 @@ class PromisifiedSubscription {
|
||||
return await db.subscriptions.findOne({ _id: new ObjectId(this._id) })
|
||||
}
|
||||
|
||||
async getSSOConfig() {
|
||||
const subscription = await this.get()
|
||||
|
||||
if (!subscription.ssoConfig) {
|
||||
return
|
||||
}
|
||||
|
||||
return await db.ssoConfigs.findOne({
|
||||
_id: new ObjectId(subscription.ssoConfig),
|
||||
})
|
||||
}
|
||||
|
||||
async getWithGroupPolicy() {
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
return await SubscriptionModel.findById(this._id)
|
||||
|
||||
Reference in New Issue
Block a user