|
@@ -145,12 +145,14 @@ public class SysRoleController extends BaseController {
|
|
|
// roleService.checkRoleDataScope(role.getRoleId());
|
|
|
String roleKey = roleService.getRoleKey(role.getRoleId());
|
|
|
if ("admin".equals(roleKey)) {
|
|
|
- if (!ObjectUtils.isEmpty(role.getRoleKey())) {
|
|
|
- role.setRoleKey("admin");
|
|
|
- }
|
|
|
- if (!ObjectUtils.isEmpty(role.getStatus())) {
|
|
|
- role.setStatus("1");
|
|
|
- }
|
|
|
+ return error("超级管理员角色不允许修改");
|
|
|
+
|
|
|
+ //if (!ObjectUtils.isEmpty(role.getRoleKey())) {
|
|
|
+ // role.setRoleKey("admin");
|
|
|
+ //}
|
|
|
+ //if (!ObjectUtils.isEmpty(role.getStatus())) {
|
|
|
+ // role.setStatus("1");
|
|
|
+ //}
|
|
|
} else {
|
|
|
if (UserConstants.NOT_UNIQUE.equals(roleService.checkRoleKeyUnique(role))) {
|
|
|
return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
|