Check permissions before page edits

Check edit and publish permissions before change pages singly or in a group