Solved the misssig key word
This commit is contained in:
parent
2ce294904b
commit
d452faf6a9
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user