Skip to content

Commit 143e917

Browse files
committed
fix: extension config/mapping
only check ninja url if Enabled fix return for ExecExtensionMapping
1 parent 7632547 commit 143e917

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Extensions/Invoke-ExecExtensionMapping.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Function Invoke-ExecExtensionMapping {
115115
# Associate values to output bindings by calling 'Push-OutputBinding'.
116116
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
117117
StatusCode = $StatusCode
118-
Body = @{Results = $Result }
118+
Body = $Result
119119
})
120120

121121
}

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Extensions/Invoke-ExecExtensionsConfig.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Function Invoke-ExecExtensionsConfig {
1717
$Body = [PSCustomObject]$Request.Body
1818
$Results = try {
1919
# Check if NinjaOne URL is set correctly and the instance has at least version 5.6
20-
if ($Body.NinjaOne) {
20+
if ($Body.NinjaOne.Enabled -eq $true) {
2121
$AllowedNinjaHostnames = @(
2222
'app.ninjarmm.com',
2323
'eu.ninjarmm.com',

0 commit comments

Comments
 (0)