@resolveio/client-lib-core 1.3.16 → 1.3.18

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.
@@ -4837,7 +4837,7 @@ class NavbarModuleComponent extends BaseComponent {
4837
4837
  else {
4838
4838
  this.currentRoute = this._services._router.url.replace(/\/[a-f0-9]{24}$/, '').replace(/\?.+$/, '');
4839
4839
  this.selectedTab = null;
4840
- while (!this.selectedTab && this.currentRoute.split('/').length > 1) {
4840
+ while (!this.selectedTab && this.currentRoute.split('/').length > 2) {
4841
4841
  for (let i = 0; i < this.menuData.tabs.length; i++) {
4842
4842
  let tab = this.menuData.tabs[i];
4843
4843
  if (tab.link === this.currentRoute) {
@@ -5523,7 +5523,7 @@ class AuthGuard {
5523
5523
  }
5524
5524
  else {
5525
5525
  let done = false;
5526
- while (!done && pageView.split('/').length > 1) {
5526
+ while (!done && pageView.split('/').length > 2) {
5527
5527
  if (!this.isLinkFakeRoute(pageView)) {
5528
5528
  if (!user.roles.groups.some(a => a.views.some(b => b === pageView))) {
5529
5529
  if (user.roles.groups.some(a => a.views.some(b => b.startsWith(moduleView) && !this.doesLinkHaveParameter(b) && !this.isLinkFakeRoute(b)))) {
@@ -5570,7 +5570,7 @@ class AuthGuard {
5570
5570
  }
5571
5571
  else {
5572
5572
  let done = false;
5573
- while (!done && pageView.split('/').length > 1) {
5573
+ while (!done && pageView.split('/').length > 2) {
5574
5574
  if (!this.isLinkFakeRoute(pageView)) {
5575
5575
  if (!user.roles.groups.some(a => a.views.some(b => b === pageView))) {
5576
5576
  if (user.roles.groups.some(a => a.views.some(b => b.startsWith(moduleView) && !this.doesLinkHaveParameter(b) && !this.isLinkFakeRoute(b)))) {