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:
sergeyteleshev
2024-02-29 17:06:57 +00:00
committed by GitHub
co-authored by s.teleshev Aleksandr Skoblikov
parent 9fe091d352
commit 62510fe18d
@@ -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);