mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Added tests for user-info component
This commit is contained in:
@@ -37,7 +37,7 @@ export class BpmUserService {
|
||||
* @param userName - the user name
|
||||
*/
|
||||
getCurrentUserInfo(): Observable<BpmUserModel> {
|
||||
if ( this.authService.getAlfrescoApi().bpmAuth.isLoggedIn() ) {
|
||||
if ( this.authService.isBpmLoggedIn() ) {
|
||||
return Observable.fromPromise(this.callApiGetProfile())
|
||||
.map(
|
||||
(data) => <BpmUserModel> data
|
||||
@@ -47,7 +47,7 @@ export class BpmUserService {
|
||||
}
|
||||
|
||||
getCurrentUserProfileImage(): any {
|
||||
if ( this.authService.getAlfrescoApi().bpmAuth.isLoggedIn() ) {
|
||||
if ( this.authService.isBpmLoggedIn() ) {
|
||||
return Observable.fromPromise(this.callApiGetProfilePicture())
|
||||
.map(
|
||||
(data) => data
|
||||
|
Reference in New Issue
Block a user