mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core): cleanup nav tree if has no rights for show
CB-130
This commit is contained in:
@@ -166,6 +166,7 @@ export class NavNodeManagerService {
|
||||
|
||||
async updateRootChildren() {
|
||||
if (!await this.permissionsService.hasAsync(EPermission.public)) {
|
||||
await this.navTree.refresh(true, ROOT_NODE_PATH, true);
|
||||
return;
|
||||
}
|
||||
await this.navTree.refresh(true, ROOT_NODE_PATH, false);
|
||||
|
||||
Reference in New Issue
Block a user