完善资源隔离和授权管理

This commit is contained in:
dushixiang
2021-01-16 17:29:20 +08:00
parent 44110722b2
commit 11c1ac23e4
16 changed files with 120 additions and 50 deletions

View File

@ -166,7 +166,7 @@ func HasPermission(c echo.Context, owner string) bool {
if !found {
return false
}
if model.RoleAdmin == account.Role {
if model.TypeAdmin == account.Type {
return true
}