This commit is contained in:
CITE\amentis 2024-08-30 11:51:55 +03:00
parent fb4712fc43
commit 514f9990b9
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ export class DescriptionTemplateEditorComponent extends BaseEditor<DescriptionTe
}
protected get viewOnly(): boolean {
return this.isDeleted || this.isFinalized || !this.hasPermission(AppPermission.EditDescriptionTemplate) || !this.belongsToCurrentTenant;
return (this.isDeleted || this.isFinalized || !this.hasPermission(AppPermission.EditDescriptionTemplate) || !this.belongsToCurrentTenant) && !this.isNewVersion;;
}
protected get canDelete(): boolean {

View File

@ -82,7 +82,7 @@ export class PlanBlueprintEditorComponent extends BaseEditor<PlanBlueprintEditor
}
protected get hideEditActions(): boolean {
return this.isDeleted || this.isFinalized || !this.authService.hasPermission(AppPermission.EditPlanBlueprint) || !this.belongsToCurrentTenant;
return (this.isDeleted || this.isFinalized || !this.authService.hasPermission(AppPermission.EditPlanBlueprint) || !this.belongsToCurrentTenant) && !this.isNewVersion;
}
protected get canDownloadXML(): boolean {