Skip to content

Commit 3f7b639

Browse files
TenantFilter
1 parent 928f37d commit 3f7b639

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Standards/Invoke-AddStandardsTemplate.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ function Invoke-AddStandardsTemplate {
1010

1111
$APIName = $Request.Params.CIPPEndpoint
1212
$Headers = $Request.Headers
13-
13+
if ($Request.Body.tenantFilter -eq 'tenantFilter') {
14+
throw 'Invalid Tenant Selected: Have you left the tenantFilter blank?'
15+
}
1416

1517
$GUID = $Request.body.GUID ? $request.body.GUID : (New-Guid).GUID
1618
#updatedBy = $request.headers.'x-ms-client-principal'

0 commit comments

Comments
 (0)