fix(core): cleanup nav tree if has no rights for show

CB-130
This commit is contained in:
Wroud
2020-06-13 19:29:00 +03:00
parent 00079bb6a1
commit 184ee5fce6
@@ -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);