@open-rlb/ng-app 3.1.109 → 3.1.111

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.
@@ -448,7 +448,7 @@ const AclStore = signalStore({ providedIn: 'root' }, withState(initialAclState),
448
448
  const resources = store.resources();
449
449
  if (!resources)
450
450
  return false;
451
- return resources.some(company => company.businessId === busId &&
451
+ return resources.some(company => company.companyId === busId &&
452
452
  company.resources.some(res => {
453
453
  const matchRes = res.resourceId === resId;
454
454
  return action ? matchRes && res.actions.includes(action) : matchRes;
@@ -533,7 +533,7 @@ class AppsService {
533
533
  return true;
534
534
  return resources?.some(userResource => {
535
535
  const appBusId = app.data?.[confAcl.businessIdKey];
536
- const matchBusId = userResource.businessId === appBusId;
536
+ const matchBusId = userResource.companyId === appBusId;
537
537
  if (!matchBusId)
538
538
  return false;
539
539
  return userResource.resources.some(res => {
@@ -1706,6 +1706,7 @@ class CompanyInterceptor {
1706
1706
  this.config = inject(RLB_CFG);
1707
1707
  }
1708
1708
  intercept(req, next) {
1709
+ console.log('HttpInterceptor');
1709
1710
  const authConfig = this.config.auth;
1710
1711
  const isAllowed = authConfig?.allowedUrls?.some(url => req.url.includes(url));
1711
1712
  if (!isAllowed || !authConfig?.enableCompanyInterceptor) {