only override isAdmin flag if it is provided by the authentication source

This commit is contained in:
Christoph Haas
2026-01-19 23:17:56 +01:00
parent 70832bfb52
commit 79eaedb9ca
4 changed files with 44 additions and 26 deletions

View File

@@ -10,11 +10,12 @@ type LoginProviderInfo struct {
}
type AuthenticatorUserInfo struct {
Identifier UserIdentifier
Email string
Firstname string
Lastname string
Phone string
Department string
IsAdmin bool
Identifier UserIdentifier
Email string
Firstname string
Lastname string
Phone string
Department string
IsAdmin bool
AdminInfoAvailable bool // true if the IsAdmin flag is valid
}