Skip to content

Commit bc3c5d6

Browse files
committed
Add StandardTaskFilter check to log listing
Updated Invoke-ListLogs.ps1 to require $StandardTaskFilter to be set before processing rows with StandardTemplateId. This change ensures standard template filtering only occurs when explicitly requested.
1 parent 56231d6 commit bc3c5d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-ListLogs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function Invoke-ListLogs {
128128

129129
foreach ($Row in $Rows) {
130130
if ($AllowedTenants -contains 'AllTenants' -or ($AllowedTenants -notcontains 'AllTenants' -and ($TenantList.defaultDomainName -contains $Row.Tenant -or $Row.Tenant -eq 'CIPP' -or $TenantList.customerId -contains $Row.TenantId)) ) {
131-
if ($Row.StandardTemplateId) {
131+
if ($StandardTaskFilter -and $Row.StandardTemplateId) {
132132
$Standard = ($Templates | Where-Object { $_.RowKey -eq $Row.StandardTemplateId }).JSON | ConvertFrom-Json
133133

134134
$StandardInfo = @{

0 commit comments

Comments
 (0)