Remove superfluous use of hasAccessControl()

This commit is contained in:
Eelco Dolstra 2023-11-30 16:28:33 +01:00
parent ea95327e72
commit 305939655a

View file

@ -91,9 +91,8 @@ StringMap EvalState::realiseContext(const NixStringContext & context)
for (auto & [outputName, outputPath] : outputs) { for (auto & [outputName, outputPath] : outputs) {
/* Add the output of this derivations to the allowed /* Add the output of this derivations to the allowed
paths. */ paths. */
if (rootFS->hasAccessControl()) { allowPath(store->toRealPath(outputPath));
allowPath(store->toRealPath(outputPath));
}
/* Get all the output paths corresponding to the placeholders we had */ /* Get all the output paths corresponding to the placeholders we had */
if (experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) { if (experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) {
res.insert_or_assign( res.insert_or_assign(