|
@@ -310,7 +310,7 @@ public class UserController extends ControllerSupport {
|
|
|
if (null == curRoleEntity) {
|
|
|
throw new StatusException("B-150006", "角色错误");
|
|
|
}
|
|
|
- if (curRoleEntity.getCode().equals(RoleMeta.SUPER_ADMIN.getCode())) {
|
|
|
+ if (curRoleEntity.getCode().equals(RoleMeta.SUPER_ADMIN.name())) {
|
|
|
throw new StatusException("B-150007", "不允许新增或修改超级管理员");
|
|
|
}
|
|
|
UserRoleRelationEntity relation = new UserRoleRelationEntity(saved.getId(),
|