diff --git a/src/server/pull.rs b/src/server/pull.rs index 097bd5cb..c0831417 100644 --- a/src/server/pull.rs +++ b/src/server/pull.rs @@ -28,7 +28,7 @@ use pbs_datastore::index::IndexFile; use pbs_datastore::manifest::{ archive_type, ArchiveType, BackupManifest, FileInfo, CLIENT_LOG_BLOB_NAME, MANIFEST_BLOB_NAME, }; -use pbs_datastore::{DataStore, StoreProgress}; +use pbs_datastore::{check_backup_owner, DataStore, StoreProgress}; use pbs_tools::sha::sha256; use proxmox_rest_server::WorkerTask; @@ -801,6 +801,10 @@ pub async fn pull_store( if new_groups.contains(local_group.as_ref()) { continue; } + let owner = params.store.get_owner(&local_group.group())?; + if check_backup_owner(&owner, ¶ms.owner).is_err() { + continue; + } if let Some(ref group_filter) = ¶ms.group_filter { if !apply_filters(local_group.as_ref(), group_filter) { continue;