修改角色数据权限更新会话信息

master
RuoYi 5 years ago committed by Limy
parent c0063765ce
commit 6502adf270

@ -135,7 +135,13 @@ public class SysRoleController extends BaseController
@ResponseBody
public AjaxResult authDataScopeSave(SysRole role)
{
return toAjax(roleService.authDataScope(role));
role.setUpdateBy(ShiroUtils.getLoginName());
if (roleService.authDataScope(role) > 0)
{
ShiroUtils.setSysUser(userService.selectUserById(ShiroUtils.getSysUser().getUserId()));
return success();
}
return error();
}
@RequiresPermissions("system:role:remove")

Loading…
Cancel
Save