Skip to content

Commit

Permalink
CB-4777 do not call rm api if not authorized in sm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-skoblikov committed Feb 29, 2024
1 parent 8fbee4f commit 4b2d393
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b2d393

Please sign in to comment.