Commit 488cb497 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '6039-update-the-system-plugin' into '1.4-dev'

Resolve "update the system plugin"

See merge request fusiondirectory/fd-plugins!761
parents ea817fb6 564b5c33
......@@ -526,6 +526,21 @@ class interfacesManagement extends management implements SimpleTab
*/
public function deserializeValues (array $values, bool $checkAcl = TRUE)
{
foreach ($values as $name => $value) {
if (isset($this->attributesAccess[$name])) {
if (!$checkAcl || $this->attrIsWriteable($name)) {
$error = $this->attributesAccess[$name]->deserializeValue($value);
if (!empty($error)) {
return $error;
}
} else {
return new FusionDirectoryError(msgPool::permModify($this->dn, $name));
}
} else {
return new FusionDirectoryError(sprintf(_('Unknown field "%s"'), $name));
}
}
return TRUE;
}
public function aclHasPermissions (): bool
......
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