Skip to content
Snippets Groups Projects
Commit 32eadec8 authored by catch's avatar catch
Browse files

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

parent c707cf79
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -34,8 +34,7 @@ public function getValueOptions() { ...@@ -34,8 +34,7 @@ public function getValueOptions() {
foreach ($modules as $module => $display_name) { foreach ($modules as $module => $display_name) {
if ($permissions = module_invoke($module, 'permission')) { if ($permissions = module_invoke($module, 'permission')) {
foreach ($permissions as $perm => $perm_item) { foreach ($permissions as $perm => $perm_item) {
// @todo: group by module but views_handler_filter_many_to_one does not support this. $this->value_options[$display_name][$perm] = check_plain(strip_tags($perm_item['title']));
$this->value_options[$perm] = check_plain(strip_tags($perm_item['title']));
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment