From f336aeceac0e7072b851f80d13f67d9f3a51421f Mon Sep 17 00:00:00 2001 From: Vito Date: Thu, 27 Jul 2017 05:47:41 -0700 Subject: [PATCH] Added platform logged check for about component (#2144) --- .../app/components/about/about.component.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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-)');