Ver código fonte

增加登录时,删除原先的用户权限缓存.

wuchangfu 2 anos atrás
pai
commit
f4ab0874af

+ 2 - 0
superdesk-libs-security/src/main/java/cn/superdesk/libs/security/SecurityDelegating.java

@@ -65,6 +65,8 @@ public class SecurityDelegating {
         }
 
         getInstance().sessionManager.storgeLoginSession(session);
+        //先清除用户权限集合
+        getInstance().resourceManager.refreshUserPermssions(userInfo.getId());
         getInstance().resourceManager.getUserPermissionCodes(userInfo.getId());
 
         return userInfo;