|
@@ -359,8 +359,9 @@ public class SysUserController extends BaseController {
|
|
|
@GetMapping("/resetPwd/{id}")
|
|
|
public AjaxResult resetPwd(@PathVariable(value = "id") Long id) {
|
|
|
boolean stop=false;
|
|
|
+ LoginUser loginUser = getLoginUser();
|
|
|
LambdaQueryWrapper<SysUserRole> wrapper=new LambdaQueryWrapper<>();
|
|
|
- wrapper.eq(SysUserRole::getUserId,id);
|
|
|
+ wrapper.eq(SysUserRole::getUserId,loginUser.getUserId());
|
|
|
List<SysUserRole> sysUserRoles = sysUserRoleMapper.selectList(wrapper);
|
|
|
for (SysUserRole sysUserRole : sysUserRoles) {
|
|
|
String roleKey = roleService.getRoleKey(sysUserRole.getRoleId());
|