added check for user abilities on edits and deletes. this fixes #60