check commiting permissions