From 4b2d393c8db8bd8ffd3ab15b7f3a659f1ed18300 Mon Sep 17 00:00:00 2001 From: Aleksandr Skoblikov Date: Thu, 29 Feb 2024 18:08:02 +0400 Subject: [PATCH] CB-4777 do not call rm api if not authorized in sm --- .../src/io/cloudbeaver/model/session/BaseWebSession.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/BaseWebSession.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/BaseWebSession.java index 84fcd4a851..86c8fd33c7 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/BaseWebSession.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/BaseWebSession.java @@ -114,7 +114,9 @@ public synchronized boolean updateSMSession(SMAuthInfo smAuthInfo) throws DBExce 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);