@open-rlb/ng-app 3.1.25 → 3.1.27

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.
@@ -525,6 +525,7 @@ class AppsService {
525
525
  const confAcl = this.confAcl;
526
526
  return apps.filter(app => {
527
527
  // Basic domain check
528
+ console.log('Filtering app:', app);
528
529
  const isDomainAllowed = !app.domains || app.domains.includes(this.currentDomain);
529
530
  if (!isDomainAllowed)
530
531
  return false;
@@ -532,9 +533,9 @@ class AppsService {
532
533
  if (!confAcl)
533
534
  return true;
534
535
  if (!resources && app.actions?.length)
535
- return true;
536
- if (!resources && app.actions && app.actions.length > 0)
537
- return false;
536
+ return false; // If app has actions defined, but no resources in store, we assume it's ACL protected and not allowed
537
+ if (resources && !app.actions?.length)
538
+ return true; // If app has no actions defined, we assume it's not ACL protected and allow it
538
539
  return resources?.some(userResource => {
539
540
  // Matching by Business ID
540
541
  // IMPORTANT: app.data must have key, name of this key is in confAcl