Skip to content

Commit

Permalink
does not ahve to be arr
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Aug 10, 2023
1 parent 332478c commit 0ef5851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Invoke-CIPPWebhookProcessing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Invoke-CippWebhookProcessing {
#Custom cipp operations.
switch ($data.operation) {
{ "UserloggedIn" -and $data.UserType -eq 2 } { $data.operation = "AdminLoggedIn"; break }
{ "UserLoggedIn" -and @($Country) -notin $AllowedLocations } { $data.operation = "UserLoggedInFromUnknownLocation" ; break }
{ "UserLoggedIn" -and $Country -notin $AllowedLocations } { $data.operation = "UserLoggedInFromUnknownLocation" ; break }
default { break }
}
#Check if the operation is allowed for this webhook.
Expand Down

0 comments on commit 0ef5851

Please sign in to comment.