Revision 56695
Added by Argiro Kokogiannaki almost 5 years ago
isRouteEnabled.guard.ts | ||
---|---|---|
39 | 39 |
} |
40 | 40 |
return res; |
41 | 41 |
}),mergeMap(prop => { |
42 |
if (!community) { // no community to check - return true
|
|
43 |
return observableOf(true);
|
|
42 |
if (!community) { |
|
43 |
community = prop.adminToolsCommunity;
|
|
44 | 44 |
} |
45 | 45 |
return this.config.isPageEnabled(prop, community, '/' + path.split('?')[0].substring(1)); |
46 | 46 |
}),); |
Also available in: Unified diff
[Library|newlinking]
Merge trunk to Branch rev 56554:56686