Checking commit rights