File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Modules/CIPPCore/Public/Entrypoints Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11using namespace System.Net
22
3- Function Invoke-PublicPhishingCheck {
3+ function Invoke-PublicPhishingCheck {
44 <#
55 . FUNCTIONALITY
66 Entrypoint
@@ -11,7 +11,10 @@ Function Invoke-PublicPhishingCheck {
1111
1212 # this has been switched to the external free service by cyberdrain at clone.cipp.app due to extreme numbers of executions if selfhosted.
1313 param ($Request , $TriggerMetadata )
14- if ($Request.body.Cloned ) {
14+
15+ $Tenant = Get-Tenants - TenantFilter $Request.body.TenantId
16+
17+ if ($Request.body.Cloned -and $Tenant.customerId -eq $Request.body.TenantId ) {
1518 Write-AlertMessage - message $Request.body.AlertMessage - sev ' Alert' - tenant $Request.body.TenantId
1619 }
1720
You can’t perform that action at this time.
0 commit comments