mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-27 03:31:46 +00:00
adjusted SSOSettings model and changed all code based on the model
This commit is contained in:
parent
b12a38d12b
commit
3cd09eecba
9 changed files with 251 additions and 103 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue