checking commit access