Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
32eadec8
Commit
32eadec8
authored
Jun 18, 2013
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
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
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php
+1
-2
1 addition, 2 deletions
.../user/lib/Drupal/user/Plugin/views/filter/Permissions.php
with
1 addition
and
2 deletions
core/modules/user/lib/Drupal/user/Plugin/views/filter/Permissions.php
+
1
−
2
View file @
32eadec8
...
@@ -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'
]));
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment