Commit 94aac647 authored by Manfred Kutas's avatar Manfred Kutas

ZP-978 Load policies from default section policy file.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 19824533
......@@ -1113,6 +1113,11 @@ class DeviceManager {
return $policies[ASDevice::DEFAULTPOLICYNAME];
}
ZLog::Write(LOGLEVEL_DEBUG, sprintf("DeviceManager->getProvisioningPolicies(): loaded '%s' policy.", $policyName));
// Always load default policies, so that if a policy extends a default policy it doesn't have to copy all the values
if ($policyName != ASDevice::DEFAULTPOLICYNAME) {
$policies[$policyName] = array_replace_recursive($policies[ASDevice::DEFAULTPOLICYNAME], $policies[$policyName]);
}
return $policies[$policyName];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment