Adding better permissions control to delete/undelete