mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 03:00:18 +08:00
Add object.IsAppUser()
This commit is contained in:
@ -1003,7 +1003,7 @@ func (user *User) GetFriendlyName() string {
|
||||
}
|
||||
|
||||
func isUserIdGlobalAdmin(userId string) bool {
|
||||
return strings.HasPrefix(userId, "built-in/") || strings.HasPrefix(userId, "app/")
|
||||
return strings.HasPrefix(userId, "built-in/") || IsAppUser(userId)
|
||||
}
|
||||
|
||||
func ExtendUserWithRolesAndPermissions(user *User) (err error) {
|
||||
|
Reference in New Issue
Block a user