mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Support auto-login.
This commit is contained in:
@ -66,7 +66,7 @@ export function showMessage(type, text) {
|
||||
}
|
||||
|
||||
export function isAdminUser(account) {
|
||||
if (account === null) {
|
||||
if (account === undefined || account === null) {
|
||||
return false;
|
||||
}
|
||||
return account.owner === "built-in" || account.isGlobalAdmin === true;
|
||||
|
Reference in New Issue
Block a user