File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ function Get-CIPPStandards {
141
141
$excludedTenantValues = $template.excludedTenants | ForEach-Object {
142
142
$FilterValue = $_.value
143
143
if ($_.type -eq ' Group' ) {
144
- ($TenantGroups | Where-Object {
144
+ ($TenantGroups | Where-Object {
145
145
$_.Id -eq $FilterValue
146
146
}).Members.defaultDomainName
147
147
} else {
@@ -158,7 +158,7 @@ function Get-CIPPStandards {
158
158
if ($tenantFilterValues -contains ' AllTenants' -and -not ($excludedTenantValues -contains $TenantName )) {
159
159
$AllTenantsApplicable = $true
160
160
}
161
- if ($tenantFilterValues -contains $TenantName ) {
161
+ if ($tenantFilterValues -contains $TenantName -and -not ( $excludedTenantValues -contains $TenantName ) ) {
162
162
$TenantSpecificApplicable = $true
163
163
}
164
164
You can’t perform that action at this time.
0 commit comments