Test commit permission