Check permission when editing notes.