File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ function Invoke-ListStandardsCompare {
1717 $Table.Filter = " PartitionKey eq '{0}'" -f $TenantFilter
1818 }
1919
20- $Standards = Get-CIPPAzDataTableEntity @Table
20+ $Tenants = Get-Tenants - IncludeErrors
21+ $Standards = Get-CIPPAzDataTableEntity @Table | Where-Object { $_.PartitionKey -in $Tenants.defaultDomainName }
2122
2223 # in the results we have objects starting with "standards." All these have to be converted from JSON. Do not do this is its a boolean
2324 <# $Results | ForEach-Object {
@@ -57,7 +58,7 @@ function Invoke-ListStandardsCompare {
5758 $HexEncodedName = $Matches [2 ]
5859 $Chars = [System.Collections.Generic.List [char ]]::new()
5960 for ($i = 0 ; $i -lt $HexEncodedName.Length ; $i += 2 ) {
60- $Chars.Add ([char ][Convert ]::ToInt32($HexEncodedName.Substring ($i , 2 ), 16 ))
61+ $Chars.Add ([char ][Convert ]::ToInt32($HexEncodedName.Substring ($i , 2 ), 16 ))
6162 }
6263 $FieldName = " $Prefix $ ( -join $Chars ) "
6364 }
You can’t perform that action at this time.
0 commit comments