@open-rlb/ng-app 3.1.14 → 3.1.16

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.
@@ -456,8 +456,8 @@ const AclStore = signalStore({ providedIn: 'root' }, withState(initialAclState),
456
456
  const resources = store.resources();
457
457
  if (!resources)
458
458
  return false;
459
- return resources.some(product => product.resources.some(res => {
460
- const matchName = res.resourceId === resourceName || res.resourceName === resourceName;
459
+ return resources.some(company => company.resourceBusinessId === resourceName && company.resources.some(res => {
460
+ const matchName = res.resourceId === resourceName;
461
461
  if (!action)
462
462
  return matchName;
463
463
  return matchName && res.actions.includes(action);
@@ -1634,8 +1634,8 @@ class CompanyInterceptor {
1634
1634
  }
1635
1635
  return this.store.select(state => state[appContextFeatureKey].currentApp).pipe(take(1), map$1((app) => {
1636
1636
  // Get the correct keys from config
1637
- const companyKey = this.config["interceptorMapping"]?.companyIdKey ?? 'companyId';
1638
- const productKey = this.config["interceptorMapping"]?.productIdKey ?? 'productId';
1637
+ const companyKey = this.config.acl?.interceptorMapping?.companyIdKey ?? 'companyId';
1638
+ const productKey = this.config.acl?.interceptorMapping?.productIdKey ?? 'productId';
1639
1639
  const companyId = app?.data?.companyId;
1640
1640
  const productId = app?.data?.productId;
1641
1641
  if (companyId && productId) {