1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00

Allow to sign path as unprivileged user

User can now sign path as unprivileged/allowed user

refs #1708
This commit is contained in:
Jean-François Roche 2023-06-27 12:01:08 +02:00
parent 8e770dac9f
commit 80c9259756
3 changed files with 18 additions and 2 deletions

View file

@ -864,8 +864,6 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
auto path = store->parseStorePath(readString(from));
StringSet sigs = readStrings<StringSet>(from);
logger->startWork();
if (!trusted)
throw Error("you are not privileged to add signatures");
store->addSignatures(path, sigs);
logger->stopWork();
to << 1;