Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
96276dfc
Commit
96276dfc
authored
Jun 15, 2020
by
ZhengJie
Browse files
[缺陷修复](v2.5): 修复修改角色权限按钮后缓存未刷新的Bug
close
https://github.com/elunez/eladmin/issues/402
parent
0cd4ff90
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java
View file @
96276dfc
...
...
@@ -125,6 +125,7 @@ public class RoleServiceImpl implements RoleService {
role
.
setMenus
(
resources
.
getMenus
());
// 清理缓存
redisUtils
.
delByKeys
(
"menu::user:"
,
userIds
);
redisUtils
.
delByKeys
(
"role::auth:"
,
userIds
);
redisUtils
.
del
(
"role::id:"
+
resources
.
getId
());
roleRepository
.
save
(
role
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment