@open-rlb/ng-app 3.1.26 → 3.1.28
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,7 +525,6 @@ 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);
|
|
529
528
|
const isDomainAllowed = !app.domains || app.domains.includes(this.currentDomain);
|
|
530
529
|
if (!isDomainAllowed)
|
|
531
530
|
return false;
|
|
@@ -533,9 +532,9 @@ class AppsService {
|
|
|
533
532
|
if (!confAcl)
|
|
534
533
|
return true;
|
|
535
534
|
if (!resources && app.actions?.length)
|
|
536
|
-
return
|
|
537
|
-
if (
|
|
538
|
-
return
|
|
535
|
+
return false; // If app has actions defined, but no resources in store, we assume it's ACL protected and not allowed
|
|
536
|
+
if (resources && !app.actions?.length)
|
|
537
|
+
return true; // If app has no actions defined, we assume it's not ACL protected and allow it
|
|
539
538
|
return resources?.some(userResource => {
|
|
540
539
|
// Matching by Business ID
|
|
541
540
|
// IMPORTANT: app.data must have key, name of this key is in confAcl
|
|
@@ -1677,7 +1676,6 @@ class CompanyInterceptor {
|
|
|
1677
1676
|
}
|
|
1678
1677
|
const currentApp = this.store.selectSignal(state => state[appContextFeatureKey].currentApp)();
|
|
1679
1678
|
const data = currentApp?.data;
|
|
1680
|
-
console.log('CompanyInterceptor - currentApp data:', data);
|
|
1681
1679
|
const mapping = this.config.acl?.interceptorMapping || {};
|
|
1682
1680
|
let params = req.params;
|
|
1683
1681
|
for (const key of Object.keys(mapping)) {
|