Disable channels on binary cached based Hydra instances

This commit is contained in:
Eelco Dolstra
2016-03-02 15:08:53 +01:00
parent f09b92e289
commit a74251af2b
7 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,7 @@ our @EXPORT = qw(
getResponsibleAuthors
setCacheHeaders
approxTableSize
requireLocalStore
);
@ -343,4 +344,11 @@ sub approxTableSize {
}
sub requireLocalStore {
my ($c) = @_;
notFound($c, "Nix channels are not supported by this Hydra server.")
if ($c->config->{store_mode} // "direct") ne "direct";
}
1;