diff --git a/lib/core/services/sites.service.ts b/lib/core/services/sites.service.ts index c99e7c6a01..27cfce87bf 100644 --- a/lib/core/services/sites.service.ts +++ b/lib/core/services/sites.service.ts @@ -91,7 +91,7 @@ export class SitesService { * @returns Username string */ getEcmCurrentLoggedUserName(): string { - return this.apiService.getInstance().ecmAuth.username; + return this.apiService.getInstance().getEcmUsername(); } private handleError(error: Response): any {