summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-10-02 19:50:34 (GMT)
committerAlex Pott2013-10-02 19:50:34 (GMT)
commit30da57fb3363533855cbddda6ec127be94628265 (patch)
treeca070201959082ac4a8fdf0e5c45579102a89c76
parentff71f796bd1bb03f60b2525c6b95cd55d9ca03d6 (diff)
Issue #2095641 by m1r1k: Use current_user() service instead of _account attribute to get user object.
-rw-r--r--core/modules/node/lib/Drupal/node/Plugin/Search/NodeSearch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/node/lib/Drupal/node/Plugin/Search/NodeSearch.php b/core/modules/node/lib/Drupal/node/Plugin/Search/NodeSearch.php
index bf987e6..517c751 100644
--- a/core/modules/node/lib/Drupal/node/Plugin/Search/NodeSearch.php
+++ b/core/modules/node/lib/Drupal/node/Plugin/Search/NodeSearch.php
@@ -111,7 +111,7 @@ class NodeSearch extends SearchPluginBase implements AccessibleInterface, Search
$container->get('module_handler'),
$container->get('config.factory')->get('search.settings'),
$container->get('keyvalue')->get('state'),
- $container->get('request')->attributes->get('_account')
+ $container->get('current_user')
);
}