diff --git a/demo-shell-ng2/app/components/about/about.component.ts b/demo-shell-ng2/app/components/about/about.component.ts index 3cb2547bb1..cd4375b9ab 100644 --- a/demo-shell-ng2/app/components/about/about.component.ts +++ b/demo-shell-ng2/app/components/about/about.component.ts @@ -49,13 +49,17 @@ export class AboutComponent implements OnInit { ngOnInit() { - this.discovery.getEcmProductInfo().subscribe((ecmVers) => { - this.ecmVersion = ecmVers; - }); + if (this.authService.isEcmLoggedIn()) { + this.discovery.getEcmProductInfo().subscribe((ecmVers) => { + this.ecmVersion = ecmVers; + }); + } - this.discovery.getBpmProductInfo().subscribe((bpmVers) => { - this.bpmVersion = bpmVers; - }); + if (this.authService.isBpmLoggedIn()) { + this.discovery.getBpmProductInfo().subscribe((bpmVers) => { + this.bpmVersion = bpmVers; + }); + } this.http.get('/versions.json').subscribe(response => { let regexp = new RegExp('^(ng2-activiti|ng2-alfresco|alfresco-)');