Skip to content

Commit b7acf48

Browse files
Merge pull request #1295 from Ren-Roros-Digital/SafeAttachmentAction
fix: rename Action to SafeAttachmentAction
2 parents 653b356 + 895191d commit b7acf48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSafeAttachmentPolicy.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Invoke-CIPPStandardSafeAttachmentPolicy {
6464

6565
$StateIsCorrect = ($CurrentState.Name -eq $PolicyName) -and
6666
($CurrentState.Enable -eq $true) -and
67-
($CurrentState.Action -eq $Settings.Action) -and
67+
($CurrentState.Action -eq $Settings.SafeAttachmentAction) -and
6868
($CurrentState.QuarantineTag -eq $Settings.QuarantineTag) -and
6969
($CurrentState.Redirect -eq $Settings.Redirect) -and
7070
(($null -eq $Settings.RedirectAddress) -or ($CurrentState.RedirectAddress -eq $Settings.RedirectAddress))
@@ -87,7 +87,7 @@ function Invoke-CIPPStandardSafeAttachmentPolicy {
8787
} else {
8888
$cmdparams = @{
8989
Enable = $true
90-
Action = $Settings.Action
90+
Action = $Settings.SafeAttachmentAction
9191
QuarantineTag = $Settings.QuarantineTag
9292
Redirect = $Settings.Redirect
9393
RedirectAddress = $Settings.RedirectAddress

0 commit comments

Comments
 (0)