Show tag in i18n

This commit is contained in:
Gucheng Wang
2022-11-06 20:19:31 +08:00
parent 770ae47471
commit 295f732b18
2 changed files with 31 additions and 1 deletions

View File

@ -142,7 +142,7 @@ func IsAllowed(subOwner string, subName string, method string, urlPath string, o
userId := fmt.Sprintf("%s/%s", subOwner, subName)
user := object.GetUser(userId)
if user != nil && user.IsAdmin && subOwner == objOwner {
if user != nil && user.IsAdmin && (subOwner == objOwner || (objOwner == "admin" && subOwner == objName)) {
return true
}