Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-3361362
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
cloud-3361362
Commits
882f3573
Commit
882f3573
authored
1 year ago
by
xiaohua guan
Committed by
Yas Naoi
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3363744
by Xiaohua Guan, yas: Add a menu link to display the module permission list
parent
4084fea5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/Derivative/CloudMenuLinks.php
+14
-1
14 additions, 1 deletion
src/Plugin/Derivative/CloudMenuLinks.php
with
14 additions
and
1 deletion
src/Plugin/Derivative/CloudMenuLinks.php
+
14
−
1
View file @
882f3573
...
...
@@ -124,12 +124,25 @@ class CloudMenuLinks extends DeriverBase implements ContainerDeriverInterface {
$id
=
"cloud.admin.menu.users"
;
$links
[
$id
]
=
$base_plugin_definition
;
$links
[
$id
][
'title'
]
=
$this
->
t
(
'@title'
,
[
'@title'
=>
$title
]);
$links
[
$id
][
'route_name'
]
=
"
entity.user.collection
"
;
$links
[
$id
][
'route_name'
]
=
'
entity.user.collection
'
;
$links
[
$id
][
'menu_name'
]
=
'cloud.admin.menu.users'
;
$links
[
$id
][
'parent'
]
=
'cloud.admin.menu'
;
$links
[
$id
][
'weight'
]
=
20
;
}
// Add permissions link under manage menu,
// if the "Module Permissions" module is enabled.
if
(
$this
->
moduleHandler
->
moduleExists
(
'module_permissions'
))
{
$title
=
"Permissions"
;
$id
=
"cloud.admin.menu.permissions"
;
$links
[
$id
]
=
$base_plugin_definition
;
$links
[
$id
][
'title'
]
=
$this
->
t
(
'@title'
,
[
'@title'
=>
$title
]);
$links
[
$id
][
'route_name'
]
=
'user.admin_permissions'
;
$links
[
$id
][
'menu_name'
]
=
'cloud.admin.menu.permissions'
;
$links
[
$id
][
'parent'
]
=
'cloud.admin.menu'
;
$links
[
$id
][
'weight'
]
=
30
;
}
return
$links
;
}
...
...
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