tape: add acl path /tape/job/{id}
This commit is contained in:
parent
ccdf327ac8
commit
16bd08b297
@ -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(());
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user