@wolkabout/commons 0.0.51 → 0.0.52
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.
|
@@ -267,7 +267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
267
267
|
}] });
|
|
268
268
|
|
|
269
269
|
function isContextAccessible(authority, isMainContext) {
|
|
270
|
-
return authority.
|
|
270
|
+
return !isMainContext || authority.contextId === 1;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
var DataType;
|
|
@@ -463,7 +463,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
463
463
|
/**
|
|
464
464
|
* Returns 'true' if the route is accessible,
|
|
465
465
|
* Returns the first available route if the requested route is NOT accessible
|
|
466
|
-
* Returns the fallback route if there are no routes accessible.
|
|
467
466
|
*
|
|
468
467
|
* Define "requiredPermissions" in the route data section.
|
|
469
468
|
* The permissions are checked globally, and the result will match if ANY permission is present.
|