mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2226 refresh user permissions when updating session state (#1363)
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
This commit is contained in:
+6
-1
@@ -230,7 +230,12 @@ public class WebServiceCore implements DBWServiceCore {
|
||||
}
|
||||
|
||||
@Override
|
||||
public WebSession getSessionState(@NotNull WebSession webSession) {
|
||||
public WebSession getSessionState(@NotNull WebSession webSession) throws DBWebException {
|
||||
try {
|
||||
webSession.getUserContext().refreshPermissions();
|
||||
} catch (DBException e) {
|
||||
throw new DBWebException("Cannot refresh user permissions", e);
|
||||
}
|
||||
return webSession;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user