Fix some bugs in Apple OAuth login path

This commit is contained in:
Yang Luo
2023-10-31 22:36:56 +08:00
parent b285144a64
commit 140737b2f6
3 changed files with 8 additions and 3 deletions

View File

@ -351,8 +351,8 @@ func CheckUserPermission(requestUserId, userId string, strict bool, lang string)
}
func CheckLoginPermission(userId string, application *Application) (bool, error) {
var err error
if userId == "built-in/admin" {
owner, _ := util.GetOwnerAndNameFromId(userId)
if owner == "built-in" {
return true, nil
}