Skip to content

Commit

Permalink
Added Get-SharingPolicy caching
Browse files Browse the repository at this point in the history
MtCisaContactSharing was calling Get-SharingPolicy instead of using the cached version.
  • Loading branch information
NZLostboy committed Sep 10, 2024
1 parent b148e95 commit 69ce7bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Test-MtCisaContactSharing {
return $null
}

$policies = Get-MtSharingPolicy
$policies = Get-MtExo -Request SharingPolicy

$resultPolicies = $policies | Where-Object {`
$_.Enabled -and `
Expand Down

0 comments on commit 69ce7bc

Please sign in to comment.