Skip to content

Commit 4b7b729

Browse files
authored
Merge pull request #410 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents bde0b3f + d7c089a commit 4b7b729

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/Invoke-PublicPhishingCheck.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using 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

0 commit comments

Comments
 (0)