Skip to content
Snippets Groups Projects
Commit 853768bc authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4025: fixing check for user1 when removing manage link in toolbar

parent b97f821b
No related branches found
No related tags found
No related merge requests found
......@@ -146,8 +146,9 @@ function uw_cfg_common_toolbar_alter(&$items) {
// Get the current user.
$current_user = \Drupal::currentUser();
$user_id = $current_user->id();
// Ensure that the current user is not user1.
if ($current_user->id() !== 1) {
if ($current_user->id() !== '1') {
// Get the roles of the user.
$roles = $current_user->getRoles();
......
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