mirror of https://gitee.com/y_project/RuoYi.git
修改角色数据权限更新会话信息
parent
590fe13004
commit
8a18c46b84
|
@ -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…
Reference in New Issue