Add GetModelEx()

This commit is contained in:
Yang Luo
2023-10-13 13:45:13 +08:00
parent 77091a3ae5
commit 80a8000057
3 changed files with 15 additions and 2 deletions

View File

@ -151,7 +151,7 @@ func UpdatePermission(id string, permission *Permission) (bool, error) {
}
if permission.ResourceType == "Application" {
model, err := GetModel(util.GetId(owner, permission.Model))
model, err := GetModelEx(util.GetId(owner, permission.Model))
if err != nil {
return false, err
} else if model == nil {