Skip to content
Snippets Groups Projects

Feature/istwcms 4874 l26yan make people and reports show on dashboard toolbar

1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -235,6 +235,12 @@ function uw_cfg_common_toolbar_alter(&$items) {
// Get the current user.
$current_user = \Drupal::currentUser();
// Remove the "manage" people for non-admin users.
if (!$current_user->hasPermission('access manage toolbar item')) {
// Remove "Manage" toolbar item.
unset($items['administration']);
}
// Adjust toolbar for non-admin users.
// Add links to "Workbench". 'dashboards' is renamed in
// uw_dashboard_toolbar_alter().
Loading