Verified Commit 864b2d14 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: Fix(Objects) ACL options errors

Fixes ACL checking LDAP options and returning errors.
Showing with 2 additions and 0 deletions
+2 -0
...@@ -90,6 +90,8 @@ class objects ...@@ -90,6 +90,8 @@ class objects
$search_attrs = [$attrs]; $search_attrs = [$attrs];
} }
foreach ($search_attrs as $search_attr) { foreach ($search_attrs as $search_attr) {
//Below str_replace allows us to remove the options, resulting in proper ACL inspection. (ACLs do not take options).
$search_attr = preg_replace('/;x-.*/', '', $search_attr);
$category = $ui->getAttributeCategory($types[0], $search_attr); $category = $ui->getAttributeCategory($types[0], $search_attr);
if ($category === FALSE) { if ($category === FALSE) {
throw new FusionDirectoryException('Could not find ACL for attribute "'.$search_attr.'" for type "'.$types[0].'"'); throw new FusionDirectoryException('Could not find ACL for attribute "'.$search_attr.'" for type "'.$types[0].'"');
......
Supports Markdown
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