Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
ef74fa76
Commit
ef74fa76
authored
3 years ago
by
l26yan
Committed by
Kevin Paxman
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4874 Allow user 1 can view 'People' and 'Reports'
parent
34298d0e
No related branches found
No related tags found
2 merge requests
!111
Tag 1.0.1
,
!108
Feature/istwcms 4874 l26yan make people and reports show on dashboard toolbar
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_cfg_common.module
+0
-5
0 additions, 5 deletions
uw_cfg_common.module
with
0 additions
and
5 deletions
uw_cfg_common.module
+
0
−
5
View file @
ef74fa76
...
@@ -235,11 +235,6 @@ function uw_cfg_common_toolbar_alter(&$items) {
...
@@ -235,11 +235,6 @@ function uw_cfg_common_toolbar_alter(&$items) {
// Get the current user.
// Get the current user.
$current_user
=
\Drupal
::
currentUser
();
$current_user
=
\Drupal
::
currentUser
();
// No changes for user 1.
if
((
int
)
$current_user
->
id
()
===
1
)
{
return
;
}
// Adjust toolbar for non-admin users.
// Adjust toolbar for non-admin users.
if
(
$current_user
->
hasPermission
(
'administer users'
))
{
if
(
$current_user
->
hasPermission
(
'administer users'
))
{
// Remove "Manage" toolbar item.
// Remove "Manage" toolbar item.
...
...
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