avoiding unauthorized document edits