diff options
author | Vincent Ambo <mail@tazj.in> | 2021-11-13T17·25+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-11-15T12·26+0000 |
commit | dc8d3e869d30f59c128877933f916475554e71cc (patch) | |
tree | 462d22796b1e55dfc72c780317753a10bbc2e485 /nix/readTree/default.nix | |
parent | 81ca2948770d25f8d6bd33898a2190b42efb402d (diff) |
refactor(depot): Generalise folder restriction readTree filter r/3069
This refactors the readTree filter which disallows access to //users from outside of //users into a reusable function. The only change in functionality is that the error message has changed slightly. I thought it is useful to keep the message consistent (i.e. always including a path), thus only a part of the error is templated in (describing the reason for why a specific sub path is unavailable). Change-Id: I30ad38b2677be5aa502c753c8c71e7ba3efc87be Reviewed-on: https://cl.tvl.fyi/c/depot/+/3872 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'nix/readTree/default.nix')
0 files changed, 0 insertions, 0 deletions