From d452faf6a9112c8cf73be4ba52a4a4b92c099345 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Thu, 18 Sep 2025 18:11:57 +0530 Subject: [PATCH] Solved the misssig key word --- Marco.Pms.Services/Controllers/DocumentController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Services/Controllers/DocumentController.cs b/Marco.Pms.Services/Controllers/DocumentController.cs index c17fd78..f6ca9f9 100644 --- a/Marco.Pms.Services/Controllers/DocumentController.cs +++ b/Marco.Pms.Services/Controllers/DocumentController.cs @@ -1331,7 +1331,7 @@ namespace Marco.Pms.Services.Controllers } // Check if the logged in employee has permission to delete OR is the owner of the document attachment - ar hasDeletePermission = false; + var hasDeletePermission = false; if (ProjectEntity == documentAttachment.DocumentType?.DocumentCategory?.EntityTypeId) { hasDeletePermission = await _permission.HasPermission(PermissionsMaster.DeleteDocument, loggedInEmployee.Id, documentAttachment.EntityId);