Update to Drupal 8.0.0-rc3. For more information, see https://www.drupal.org/node/2608078
This commit is contained in:
parent
6419a031d7
commit
4afb23bbd3
762 changed files with 20080 additions and 6368 deletions
|
@ -434,7 +434,7 @@ function user_template_preprocess_default_variables_alter(&$variables) {
|
|||
$user = \Drupal::currentUser();
|
||||
|
||||
$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);
|
||||
|
||||
$variables['is_admin'] = $user->hasPermission('access administration pages');
|
||||
|
|
Reference in a new issue