@coolon/angular-ui-powerups 14.27.0 → 14.28.0
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.
- package/esm2020/lib/place/guards/place.guard.mjs +2 -2
- package/fesm2015/coolon-angular-ui-powerups.mjs +1 -1
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10321,7 +10321,7 @@ class PlaceGuard {
|
|
|
10321
10321
|
}
|
|
10322
10322
|
return this.createUrlTree(redirectLocation);
|
|
10323
10323
|
}
|
|
10324
|
-
if (!accessGuard.isAuthorised(placeDefinition)) {
|
|
10324
|
+
if (!accessGuard.isAuthorised(placeDefinition) && !placeDefinition.redirectToFirstChild) {
|
|
10325
10325
|
const redirectOptions = this.placeRouter.getAuthorisationFailureRedirectOptions(activatedRoute.component);
|
|
10326
10326
|
const nextRedirect = redirectOptions.find(it => accessGuard.isAuthorised(this.getPlaceDefinition(it)));
|
|
10327
10327
|
if (!nextRedirect) {
|