Skip to content

Commit 8093322

Browse files
committed
fix: permissionLevel casing
1 parent 5fd138c commit 8093322

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Modules/CIPPCore/Public/Standards/Get-CIPPStandards.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ function Get-CIPPStandards {
1717
$Table = Get-CippTable -tablename 'templates'
1818
$Filter = "PartitionKey eq 'StandardsTemplateV2'"
1919
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Sort-Object TimeStamp).JSON |
20-
ForEach-Object {
21-
try {
22-
# Fix old "Action" => "action"
23-
$JSON = $_ -replace '"Action":', '"action":'
24-
ConvertFrom-Json -InputObject $JSON -ErrorAction SilentlyContinue
25-
} catch {}
26-
} |
27-
Where-Object {
28-
$_.GUID -like $TemplateId -and $_.runManually -eq $runManually
29-
}
20+
ForEach-Object {
21+
try {
22+
# Fix old "Action" => "action"
23+
$JSON = $_ -replace '"Action":', '"action":' -replace '"permissionlevel":', '"permissionLevel":'
24+
ConvertFrom-Json -InputObject $JSON -ErrorAction SilentlyContinue
25+
} catch {}
26+
} |
27+
Where-Object {
28+
$_.GUID -like $TemplateId -and $_.runManually -eq $runManually
29+
}
3030

3131
# 2. Get tenant list, filter if needed
3232
$AllTenantsList = Get-Tenants

0 commit comments

Comments
 (0)