...
|
...
|
@@ -153,6 +153,10 @@ func (service UsersService) buildUserPofile(userData domain.Users, permissionLis |
|
|
"id": v.Id,
|
|
|
"status": 0, //状态 1-启用 0-禁用,前端需要
|
|
|
}
|
|
|
if userData.IsSuperAdmin() {
|
|
|
m["status"] = 1
|
|
|
continue
|
|
|
}
|
|
|
for _, p := range userData.Permission {
|
|
|
if p.Id == v.Id {
|
|
|
m["status"] = 1
|
...
|
...
|
|