Commit 049d6b0d authored by xjm's avatar xjm

Issue #2595605 by snehi, kiamlaluno, cilefen: Wrong comment in User module in user.module file

parent cd569936
...@@ -434,7 +434,7 @@ function user_template_preprocess_default_variables_alter(&$variables) { ...@@ -434,7 +434,7 @@ function user_template_preprocess_default_variables_alter(&$variables) {
$user = \Drupal::currentUser(); $user = \Drupal::currentUser();
$variables['user'] = clone $user; $variables['user'] = clone $user;
// Remove password and session IDs, $form_state, since themes should not need nor see them. // Remove password and session IDs, since themes should not need nor see them.
unset($variables['user']->pass, $variables['user']->sid, $variables['user']->ssid); unset($variables['user']->pass, $variables['user']->sid, $variables['user']->ssid);
$variables['is_admin'] = $user->hasPermission('access administration pages'); $variables['is_admin'] = $user->hasPermission('access administration pages');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment