用户管理

This commit is contained in:
cwchen 2024-06-28 16:42:39 +08:00
parent 866d28f1f3
commit 50dbaf00d1
2 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ public class SysRoleController extends BaseController
@PutMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysRole role)
{
// roleService.checkRoleAllowed(role);
roleService.checkRoleAllowed(role);
roleService.checkRoleDataScope(role.getRoleId());
role.setUpdateBy(SecurityUtils.getUsername());
return toAjax(roleService.updateRoleStatus(role));

View File

@ -183,10 +183,10 @@ public class SysRoleServiceImpl implements ISysRoleService
@Override
public void checkRoleAllowed(SysRole role)
{
if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
/*if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin())
{
throw new ServiceException("不允许操作超级管理员角色");
}
}*/
}
/**