Skip to content

Commit

Permalink
Merge pull request #1295 from Ren-Roros-Digital/SafeAttachmentAction
Browse files Browse the repository at this point in the history
fix: rename Action to SafeAttachmentAction
  • Loading branch information
KelvinTegelaar authored Feb 7, 2025
2 parents 653b356 + 895191d commit b7acf48
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function Invoke-CIPPStandardSafeAttachmentPolicy {

$StateIsCorrect = ($CurrentState.Name -eq $PolicyName) -and
($CurrentState.Enable -eq $true) -and
($CurrentState.Action -eq $Settings.Action) -and
($CurrentState.Action -eq $Settings.SafeAttachmentAction) -and
($CurrentState.QuarantineTag -eq $Settings.QuarantineTag) -and
($CurrentState.Redirect -eq $Settings.Redirect) -and
(($null -eq $Settings.RedirectAddress) -or ($CurrentState.RedirectAddress -eq $Settings.RedirectAddress))
Expand All @@ -87,7 +87,7 @@ function Invoke-CIPPStandardSafeAttachmentPolicy {
} else {
$cmdparams = @{
Enable = $true
Action = $Settings.Action
Action = $Settings.SafeAttachmentAction
QuarantineTag = $Settings.QuarantineTag
Redirect = $Settings.Redirect
RedirectAddress = $Settings.RedirectAddress
Expand Down

0 comments on commit b7acf48

Please sign in to comment.