mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 23:05:29 +08:00
Cb 4777 te log viewer access denied and anonymous access restricted errors after login (#2431)
* CB-4777 fix: removes an "anonymous access restricted" error from log viewer * CB-4777 fix: isUserAvailable for userInfoService * CB-4777 chore: code cleanup * CB-4777 do not call rm api if not authorized in sm * CB-4777 revert changes * CB-4777 revert changes --------- Co-authored-by: s.teleshev <s.teleshev@mu.se> Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com>
This commit is contained in:
co-authored by
s.teleshev
Aleksandr Skoblikov
parent
9fe091d352
commit
62510fe18d
+3
-1
@@ -114,7 +114,9 @@ public abstract class BaseWebSession extends AbstractSessionPersistent {
|
||||
public synchronized void refreshUserData() {
|
||||
try {
|
||||
userContext.refreshPermissions();
|
||||
userContext.refreshAccessibleProjects();
|
||||
if (userContext.isAuthorizedInSecurityManager()) {
|
||||
userContext.refreshAccessibleProjects();
|
||||
}
|
||||
} catch (DBException e) {
|
||||
addSessionError(e);
|
||||
log.error("Error refreshing accessible projects", e);
|
||||
|
||||
Reference in New Issue
Block a user