|
@@ -27,6 +27,7 @@ import com.ruoyi.common.utils.ShiroUtils;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.framework.shiro.service.SysPasswordService;
|
|
|
+import com.ruoyi.framework.shiro.util.AuthorizationUtils;
|
|
|
import com.ruoyi.system.service.ISysPostService;
|
|
|
import com.ruoyi.system.service.ISysRoleService;
|
|
|
import com.ruoyi.system.service.ISysUserService;
|
|
@@ -178,6 +179,7 @@ public class SysUserController extends BaseController
|
|
|
return error("修改用户'" + user.getLoginName() + "'失败,邮箱账号已存在");
|
|
|
}
|
|
|
user.setUpdateBy(getLoginName());
|
|
|
+ AuthorizationUtils.clearAllCachedAuthorizationInfo();
|
|
|
return toAjax(userService.updateUser(user));
|
|
|
}
|
|
|
|
|
@@ -233,6 +235,7 @@ public class SysUserController extends BaseController
|
|
|
public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
|
|
|
{
|
|
|
userService.insertUserAuth(userId, roleIds);
|
|
|
+ AuthorizationUtils.clearAllCachedAuthorizationInfo();
|
|
|
return success();
|
|
|
}
|
|
|
|