Revision 54965
Added by Konstantinos Triantafyllou about 5 years ago
connectAdminLoginGuard.guard.ts | ||
---|---|---|
26 | 26 |
return true; |
27 | 27 |
} else { |
28 | 28 |
const obs = this.propertiesService.subscribeEnvironment().map(res => res).mergeMap(properties => { |
29 |
return this.communityService.iscommunityManager(properties, properties['communityAPI'] + community, Session.getUserEmail());
|
|
29 |
return this.communityService.isCommunityManager(properties, properties['communityAPI'] + community, Session.getUserEmail());
|
|
30 | 30 |
}); |
31 | 31 |
obs.filter(enabled => !enabled) |
32 | 32 |
.subscribe(() => this.router.navigate(['/user-info'], { |
Also available in: Unified diff
[Trunk|Library]: connectCommunityGuard has been added it for check if type is community. Change community error page message