I am using the ItemDeleting event receiver to prevent users from deleting items in a Task List.
Currently, my code looks like:
if (properties.ListTitle == "Project Intake Tasks")
{
properties.Cancel = true;
}
And this works but it results in a "<nativehr>0x81020089</nativehr><nativestack></nativestack>An event receiver has canceled the request.
"
error when a user tries to delete a task from the Task Item Edit page. Is there a way to get rid of this error or to grey out the Delete Item button in the Task Item Edit page?
Note: I tried to set custom permissions for the list but could not find a specific "Delete Item" permission level as talked about here http://office.microsoft.com/en-us/windows-sharepoint-services-help/permission-levels-and-permissions-HA010100149.aspx.
Is there a specific Item Delete permission level for lists that I just can't find?