adjusted SSOSettings model and changed all code based on the model

This commit is contained in:
David Leimroth 2022-02-10 14:45:21 +01:00
parent b12a38d12b
commit 3cd09eecba
9 changed files with 251 additions and 103 deletions

View file

@ -85,6 +85,9 @@ class Server {
return client.user.toJSONForPublic(this.streamManager.streams)
})
}
get SSOSettings() {
return this.db.SSOSettings
}
getClientsForUser(userId) {
return Object.values(this.clients).filter(c => c.user && c.user.id === userId)
@ -679,6 +682,7 @@ class Server {
}
if (user.type === 'root') {
initialPayload.usersOnline = this.usersOnline
initialPayload.SSOSettings = this.SSOSettings
}
client.socket.emit('init', initialPayload)