feat: fix bug in GetAllowedApplications()

This commit is contained in:
Yang Luo
2023-11-08 10:31:24 +08:00
parent 498cd02d49
commit a9e72ac3cb
2 changed files with 3 additions and 4 deletions

View File

@ -851,7 +851,7 @@ func (user *User) GetId() string {
}
func isUserIdGlobalAdmin(userId string) bool {
return strings.HasPrefix(userId, "built-in/")
return strings.HasPrefix(userId, "built-in/") || strings.HasPrefix(userId, "app/")
}
func ExtendUserWithRolesAndPermissions(user *User) (err error) {