summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2013-06-18 09:49:39 (GMT)
committerNathaniel Catchpole2013-06-18 09:49:39 (GMT)
commit32eadec8b4e7f546df61c23977af0c99a65f82ce (patch)
tree42c08bd6294161a9fb5f11eda64ada0c63e3a856
parentc707cf7964d369ce293acf853fa7fab28f55916a (diff)
Issue #2018569 by dawehner | yannickoo: Added Group permissions in the new views handler.
-rw-r--r--core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php
index 0f625c4..4d1aa28 100644
--- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php
+++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php
@@ -34,8 +34,7 @@ class Permissions extends ManyToOne {
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']));
}
}
}