Skip to content
Snippets Groups Projects
Commit ef74fa76 authored by l26yan's avatar l26yan Committed by Kevin Paxman
Browse files

ISTWCMS-4874 Allow user 1 can view 'People' and 'Reports'

parent 34298d0e
No related branches found
No related tags found
2 merge requests!111Tag 1.0.1,!108Feature/istwcms 4874 l26yan make people and reports show on dashboard toolbar
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment