From 16bd08b2976c65fa620a18d53f37b97c555a2554 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 3 Mar 2021 12:46:27 +0100 Subject: [PATCH] tape: add acl path /tape/job/{id} --- src/config/acl.rs | 6 ++++++ src/config/datastore.rs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/config/acl.rs b/src/config/acl.rs index 95bea06d..fbe11a5e 100644 --- a/src/config/acl.rs +++ b/src/config/acl.rs @@ -364,6 +364,12 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> { return Ok(()); } } + "job" => { + // /tape/job/{id} + if components_len <= 3 { + return Ok(()); + } + } _ => {} } } diff --git a/src/config/datastore.rs b/src/config/datastore.rs index 6d6cd402..7b16ab14 100644 --- a/src/config/datastore.rs +++ b/src/config/datastore.rs @@ -192,6 +192,8 @@ pub fn complete_acl_path(_arg: &str, _param: &HashMap) -> Vec