[Trunk | Library]: isRouteEnabled.guard.ts: Remove print message for debugging.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59123 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
150efc1cfb
commit
2c99a4a657
|
@ -75,7 +75,7 @@ export class IsRouteEnabled implements CanActivate {
|
|||
//this.config.isPageEnabled(properties, community, '/' + path);
|
||||
this.config.isPageEnabledByState(properties, community, '/'+path);
|
||||
obs
|
||||
.pipe(tap((enabled) => console.log("aaa: "+enabled)))
|
||||
//.pipe(tap((enabled) => console.log("aaa: "+enabled)))
|
||||
.pipe(filter(enabled => !enabled))
|
||||
.subscribe(() => {
|
||||
this.router.navigate([redirect], {queryParams: {'page': path}});
|
||||
|
|
Loading…
Reference in New Issue