Skip to content

Commit 248c570

Browse files
committed
standard template fix
1 parent 819c270 commit 248c570

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/CIPPCore/Public/Invoke-RemoveStandardTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Function Invoke-RemoveStandardTemplate {
1414
$User = $request.headers.'x-ms-client-principal'
1515
Write-LogMessage -user $User -API $APINAME -message 'Accessed this API' -Sev 'Debug'
1616

17-
$ID = $request.body.ID
17+
$ID = $Request.Body.ID ?? $Request.Query.ID
1818
try {
1919
$Table = Get-CippTable -tablename 'templates'
2020

0 commit comments

Comments
 (0)