From b6b2c9309609acd2d39880fc297bc00991724add Mon Sep 17 00:00:00 2001 From: gkolokythas Date: Fri, 20 Dec 2019 12:18:57 +0200 Subject: [PATCH] Fixes bug of disabled form on DMP editor. --- dmp-frontend/src/app/ui/dmp/editor/dmp-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ef5a0d350..bf196de0c 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 @@ -111,7 +111,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC this.dmp.fromModel(data); this.formGroup = this.dmp.buildForm(); this.setIsUserOwner(); - if (this.isUserOwner) { + if (!this.isUserOwner) { this.isFinalized = true; this.formGroup.disable(); }