|
|
@ -82,10 +82,6 @@ public class RoleController { |
|
|
|
@PutMapping("/update") |
|
|
|
@PutMapping("/update") |
|
|
|
@PreAuthorize("@pms.hasPermission('role_edit')") |
|
|
|
@PreAuthorize("@pms.hasPermission('role_edit')") |
|
|
|
public R update(@RequestBody Role role) { |
|
|
|
public R update(@RequestBody Role role) { |
|
|
|
// todo: 防止角色菜单授权移除,暂时处理手段
|
|
|
|
|
|
|
|
if(ArrayUtil.contains(role.getMenuIds(), "1510519786040041472")){ |
|
|
|
|
|
|
|
return R.error("不允许移除角色管理菜单"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
roleService.updateRoleMenu(role); |
|
|
|
roleService.updateRoleMenu(role); |
|
|
|
return R.ok(); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
} |
|
|
|