added check for user abilities on edits and deletes