Skip to content

Commit 423a605

Browse files
committed
Fix tenant filter logic in Get-CIPPBackup
Updated the tenant filter condition to exclude 'AllTenants' from being treated as a specific tenant filter. This ensures that backups are not incorrectly filtered when 'AllTenants' is specified.
1 parent b9ca96c commit 423a605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Get-CIPPBackup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Get-CIPPBackup {
3131
$Info = $Info | Where-Object { $_.RowKey -match "^$($TenantFilter)_" }
3232
}
3333
} else {
34-
if ($TenantFilter) {
34+
if ($TenantFilter -and $TenantFilter -ne 'AllTenants') {
3535
$Info = $Info | Where-Object { $_.TenantFilter -eq $TenantFilter }
3636
}
3737
}

0 commit comments

Comments
 (0)