verify_job: fix priv check

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler authored and Thomas Lamprecht committed 2022-05-25 17:18:56 +02:00
1 parent bb5c77fffa
commit 0aa5815fb6
3 files changed
+27 -15

No files matched your search

+9
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: {