Commit 954c08d4 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "bug1237177: Elasticsearch does not find media in a group."

parents 568074bf 730f8b27
......@@ -1039,6 +1039,11 @@ abstract class ElasticsearchType
if ($type == 'group') {
$role = isset($record->role) ? $record->role : 'all';
$access[$type . 's'][$role][] = $record->$type;
if ($role == 'all') {
// add member and admin roles. 'all' does not seem to find them.
$access[$type . 's']['member'][] = $record->$type;
$access[$type . 's']['admin'][] = $record->$type;
}
}
else
$access[$type . 's'][] = $record->$type;
......
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