commit permission check