Checking commit ability