Skip to content

Commit e5767b8

Browse files
committed
Merge branch 'dev' of https://github.com/KelvinTegelaar/CIPP-API into dev
2 parents 0b687c4 + 98ec939 commit e5767b8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecTenantGroup.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ function Invoke-ExecTenantGroup {
3535
if ($groupDescription) {
3636
$GroupEntity.Description = $groupDescription
3737
}
38-
if (!$GroupEntity.PSObject.Properties.Name -contains 'GroupType') {
39-
$GroupEntity | Add-Member -NotePropertyName 'GroupType' -NotePropertyValue $groupType -Force
40-
} else {
41-
$GroupEntity.GroupType = $groupType
42-
}
38+
$GroupEntity | Add-Member -NotePropertyName 'GroupType' -NotePropertyValue $groupType -Force
4339
if ($groupType -eq 'dynamic' -and $dynamicRules) {
4440
$GroupEntity.DynamicRules = "$($dynamicRules | ConvertTo-Json -Depth 100 -Compress)"
4541
$GroupEntity | Add-Member -NotePropertyName 'RuleLogic' -NotePropertyValue $ruleLogic -Force

0 commit comments

Comments
 (0)