Skip to content

Commit a80f59e

Browse files
committed
Remove Both forwarding type - external takes precedence
1 parent 7978dd8 commit a80f59e

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Reports/Invoke-ListMailboxForwarding.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ function Invoke-ListMailboxForwarding {
5050
continue
5151
}
5252

53-
$ForwardingType = if ($HasExternalForwarding -and $HasInternalForwarding) {
54-
'Both'
55-
} elseif ($HasExternalForwarding) {
53+
# External takes precedence when both are configured
54+
$ForwardingType = if ($HasExternalForwarding) {
5655
'External'
5756
} else {
5857
'Internal'

Modules/CIPPCore/Public/Get-CIPPMailboxForwardingReport.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ function Get-CIPPMailboxForwardingReport {
7171
continue
7272
}
7373

74-
# Determine forwarding type for display
75-
$ForwardingType = if ($HasExternalForwarding -and $HasInternalForwarding) {
76-
'Both'
77-
} elseif ($HasExternalForwarding) {
74+
# Determine forwarding type for display (external takes precedence)
75+
$ForwardingType = if ($HasExternalForwarding) {
7876
'External'
7977
} else {
8078
'Internal'

0 commit comments

Comments
 (0)