From c98b7934d8ca53059b5017380b5d62d8f2318c57 Mon Sep 17 00:00:00 2001 From: gkolokythas Date: Wed, 22 May 2019 17:18:30 +0300 Subject: [PATCH] Fixes bug on public DMP view when user is not logged in. --- dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts index d8f27bde5..1fae23dda 100644 --- a/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts @@ -191,7 +191,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC this.formGroup = this.dmp.buildForm(); this.registerFormEventsForDmpProfile(this.dmp.definition); if (!this.editMode || this.dmp.status === Status.Inactive) { this.formGroup.disable(); } - if (this.isAuthenticated) { + if (this.isAuthenticated()) { // if (!this.isAuthenticated) { this.breadCrumbs = Observable.of([ { @@ -203,7 +203,6 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC ); this.associatedUsers = data.associatedUsers; } - }); } else { this.dmp = new DmpEditorModel();