Commit 1a2db239 authored by zhangch's avatar zhangch

修复admin帐号无法修改权限问题

parent 07449697
......@@ -130,7 +130,7 @@ public class RoleController {
*/
@PostMapping("/updateRole")
public Result updateRole(ReqRoleInfo reqRoleInfo) {
if (reqRoleInfo.getId() == null || reqRoleInfo.getId() == 0) {
if (reqRoleInfo.getId() == null) {
return Result.failed("角色ID无效!");
}
SystemRole systemRole = roleService.getOne(new LambdaQueryWrapper<SystemRole>().eq(SystemRole::getRoleId, reqRoleInfo.getId()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment