Checking the commit rights