@resolveio/client-lib-core 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/widgets/navbar-main/navbar-main.component.mjs +7 -1
- package/fesm2015/resolveio-client-lib-core.mjs +6 -0
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +6 -0
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4634,6 +4634,9 @@ class NavbarMainComponent extends BaseComponent {
|
|
|
4634
4634
|
return false;
|
|
4635
4635
|
}
|
|
4636
4636
|
isInRole(role) {
|
|
4637
|
+
if (!role) {
|
|
4638
|
+
return true;
|
|
4639
|
+
}
|
|
4637
4640
|
if (this.isSuperAdmin()) {
|
|
4638
4641
|
return true;
|
|
4639
4642
|
}
|
|
@@ -4661,6 +4664,9 @@ class NavbarMainComponent extends BaseComponent {
|
|
|
4661
4664
|
}
|
|
4662
4665
|
for (let i = 0; i < roles.length; i++) {
|
|
4663
4666
|
let role = roles[i];
|
|
4667
|
+
if (!role) {
|
|
4668
|
+
return true;
|
|
4669
|
+
}
|
|
4664
4670
|
if (this._services._account.isUserInView(role)) {
|
|
4665
4671
|
return true;
|
|
4666
4672
|
}
|