Solved the misssig key word

This commit is contained in:
ashutosh.nehete 2025-09-18 18:11:57 +05:30
parent 2ce294904b
commit d452faf6a9

View File

@ -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 // 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) if (ProjectEntity == documentAttachment.DocumentType?.DocumentCategory?.EntityTypeId)
{ {
hasDeletePermission = await _permission.HasPermission(PermissionsMaster.DeleteDocument, loggedInEmployee.Id, documentAttachment.EntityId); hasDeletePermission = await _permission.HasPermission(PermissionsMaster.DeleteDocument, loggedInEmployee.Id, documentAttachment.EntityId);