Fix checkout permissions.