From c36733f3043a3ade716fe21bc9763e33a888db7d Mon Sep 17 00:00:00 2001 From: "CITE\\dtziotzios" Date: Tue, 17 Sep 2024 13:59:21 +0300 Subject: [PATCH] bug fix --- .../app/ui/plan/plan-editor-blueprint/plan-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts index 6e5f31059..6959e9f2e 100644 --- a/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts +++ b/frontend/src/app/ui/plan/plan-editor-blueprint/plan-editor.component.ts @@ -140,7 +140,7 @@ export class PlanEditorComponent extends BaseEditor imple } protected canEditSection(id: Guid): boolean { - return this.canEdit && (this.hasPermission(this.authService.permissionEnum.EditDescription) || this.item?.authorizationFlags?.some(x => x === AppPermission.EditDescription) || ( + return !this.isDeleted && (this.hasPermission(this.authService.permissionEnum.EditDescription) || this.item?.authorizationFlags?.some(x => x === AppPermission.EditDescription) || ( this.permissionPerSection && this.permissionPerSection[id.toString()] && this.permissionPerSection[id.toString()].some(x => x === AppPermission.EditDescription) )); }