Commit 32eadec8 authored by catch's avatar catch

Issue #2018569 by dawehner | yannickoo: Added Group permissions in the new views handler.

parent c707cf79
......@@ -34,8 +34,7 @@ public function getValueOptions() {
foreach ($modules as $module => $display_name) {
if ($permissions = module_invoke($module, 'permission')) {
foreach ($permissions as $perm => $perm_item) {
// @todo: group by module but views_handler_filter_many_to_one does not support this.
$this->value_options[$perm] = check_plain(strip_tags($perm_item['title']));
$this->value_options[$display_name][$perm] = check_plain(strip_tags($perm_item['title']));
}
}
}
......
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