verify_job: fix priv check

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-05-24 12:07:07 +02:00 committed by Thomas Lamprecht
parent bb0fdee898
commit d09aadee84

View File

@ -223,6 +223,15 @@ pub struct VerificationJobConfig {
pub max_depth: Option<usize>,
}
impl VerificationJobConfig {
pub fn store_with_ns(&self) -> DatastoreWithNamespace {
DatastoreWithNamespace {
store: self.store.clone(),
ns: self.ns.clone().unwrap_or_default(),
}
}
}
#[api(
properties: {
config: {