Unverified Commit 80755b83 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(management) Fix ACL check for search field

The permission check was too general, so it was trying to search on too
 many field and giving empty results in the end when the user has parial
 read rights.

issue #6149
Showing with 1 addition and 1 deletion
+1 -1
......@@ -119,7 +119,7 @@ class managementFilter
$this->searchAttributes[$type] = [];
$this->parent->listing->fillSearchedAttributes($type, $attrs);
foreach ($attrs as $attr => $acl) {
$rights = $ui->get_permissions($base, $acl);
$rights = $ui->get_permissions($base, $acl, $attr);
if (strpos($rights, 'r') !== FALSE) {
$this->searchAttributes[$type][] = $attr;
}
......
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