tape: add acl path /tape/job/{id}

This commit is contained in:
Dietmar Maurer 2021-03-03 12:46:27 +01:00
parent ccdf327ac8
commit 16bd08b297
2 changed files with 8 additions and 0 deletions

View File

@ -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(());
}
}
_ => {}
}
}

View File

@ -192,6 +192,8 @@ pub fn complete_acl_path(_arg: &str, _param: &HashMap<String, String>) -> Vec<St
list.push(String::from("/tape/changer/"));
list.push(String::from("/tape/pool"));
list.push(String::from("/tape/pool/"));
list.push(String::from("/tape/job"));
list.push(String::from("/tape/job/"));
list
}