File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments