Skip to content

Commit

Permalink
Cb 4777 te log viewer access denied and anonymous access restricted e…
Browse files Browse the repository at this point in the history
…rrors 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 <[email protected]>
Co-authored-by: Aleksandr Skoblikov <[email protected]>
  • Loading branch information
3 people authored Feb 29, 2024
1 parent 9fe091d commit 62510fe
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 62510fe

Please sign in to comment.