mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#6216 fix missing errors (#3645)
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
This commit is contained in:
co-authored by
kseniaguzeeva
parent
36071c244e
commit
13a6dc9da7
+2
-1
@@ -32,6 +32,7 @@ import org.jkiss.code.NotNull;
|
||||
import org.jkiss.dbeaver.DBException;
|
||||
import org.jkiss.dbeaver.Log;
|
||||
import org.jkiss.dbeaver.model.auth.SMAuthInfo;
|
||||
import org.jkiss.dbeaver.model.auth.SMAuthStatus;
|
||||
import org.jkiss.dbeaver.model.websocket.WSEventHandler;
|
||||
import org.jkiss.dbeaver.model.websocket.event.session.WSAuthEvent;
|
||||
|
||||
@@ -45,7 +46,7 @@ public class WSAuthSessionEventHandler implements WSEventHandler<WSAuthEvent> {
|
||||
SMAuthInfo authInfo = event.getAuthInfo();
|
||||
WebApplication webApplication = WebAppUtils.getWebApplication();
|
||||
WebAppSessionManager sessionManager = webApplication.getSessionManager();
|
||||
if (authInfo.getAuthPermissions() == null) {
|
||||
if (authInfo.getAuthPermissions() == null && authInfo.getAuthStatus() == SMAuthStatus.SUCCESS) {
|
||||
log.error("No auth permissions available in SUCCESS auth");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user