@open-rlb/ng-app 3.1.26 → 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.
@@ -533,9 +533,9 @@ class AppsService {
533
533
  if (!confAcl)
534
534
  return true;
535
535
  if (!resources && app.actions?.length)
536
- return true;
537
- if (!resources && app.actions && app.actions.length > 0)
538
- 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
539
539
  return resources?.some(userResource => {
540
540
  // Matching by Business ID
541
541
  // IMPORTANT: app.data must have key, name of this key is in confAcl