Skip to content
Snippets Groups Projects
Commit 71706897 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4631: Adjust toolbar for non-admin users

parent 9b5d77cf
No related branches found
No related tags found
1 merge request!65ISTWCMS-4631, ISTWCMS-4636: Toolbar adjustments
......@@ -193,6 +193,11 @@ function uw_cfg_common_toolbar_alter(&$items) {
// Remove the manage link.
unset($items['administration']);
}
// Adjust toolbar for non-admin users.
elseif (!UWService::userIsAdmin($current_user)) {
// Remove "Manage" toolbar item.
unset($items['administration']);
}
}
/**
......
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