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

pull/94/head
RuoYi 2019-05-27 18:48:07 +08:00
parent 590fe13004
commit 8a18c46b84
1 changed files with 7 additions and 1 deletions

View File

@ -135,7 +135,13 @@ public class SysRoleController extends BaseController
@ResponseBody @ResponseBody
public AjaxResult authDataScopeSave(SysRole role) 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") @RequiresPermissions("system:role:remove")