完善资源隔离和授权管理
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user