|
@@ -1211,6 +1211,7 @@ func (this *RoleAPIController) EditAdmin() {
|
1211
|
1211
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeAdminUserNotExist)
|
1212
|
1212
|
return
|
1213
|
1213
|
}
|
|
1214
|
+ appRole.OrgId = this.GetAdminUserInfo().CurrentOrgId
|
1214
|
1215
|
appRole.Department = department
|
1215
|
1216
|
appRole.DepartmentId = department_id
|
1216
|
1217
|
appRole.UserName = name
|
|
@@ -1255,6 +1256,8 @@ func (this *RoleAPIController) EditAdmin() {
|
1255
|
1256
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDBUpdate)
|
1256
|
1257
|
|
1257
|
1258
|
} else {
|
|
1259
|
+ //判断当前角色是否为机构管理员
|
|
1260
|
+
|
1258
|
1261
|
this.ServeSuccessJSON(map[string]interface{}{
|
1259
|
1262
|
"approle": appRole,
|
1260
|
1263
|
})
|