aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-11-25 05:01:18 +0000
committerChristopher Ng <chrng8@gmail.com>2021-11-25 05:01:18 +0000
commitae85a16ed22af110710154a1bddd6ff19f79e290 (patch)
tree7208a0213c1f250a0d0c9b4f88a4cb776bbaec25
parentd42a28cd7ced228545e0f7b77ee60db8ad26d9e1 (diff)
downloadnextcloud-server-ae85a16ed22af110710154a1bddd6ff19f79e290.tar.gz
nextcloud-server-ae85a16ed22af110710154a1bddd6ff19f79e290.zip
Fix inactive profile parameters being returned
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--lib/private/Profile/ProfileManager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Profile/ProfileManager.php b/lib/private/Profile/ProfileManager.php
index f83de7fd358..557ae87bafe 100644
--- a/lib/private/Profile/ProfileManager.php
+++ b/lib/private/Profile/ProfileManager.php
@@ -425,6 +425,7 @@ class ProfileManager {
];
$paramMetadata = array_merge($actionsMetadata, $propertiesMetadata);
+ $configArray = array_intersect_key($configArray, $paramMetadata);
foreach ($configArray as $paramId => $paramConfig) {
if (isset($paramMetadata[$paramId])) {