Commit ac9abf56 authored by davidwhthomas's avatar davidwhthomas Committed by japerry

Issue #2010124 by davidwhthomas: ctools_access_get_loggedin_context doesn't...

Issue #2010124 by davidwhthomas: ctools_access_get_loggedin_context doesn't fully load current user in context
parent 8f4b7cce
...@@ -42,7 +42,9 @@ function ctools_context_create_user($empty, $data = NULL, $conf = FALSE) { ...@@ -42,7 +42,9 @@ function ctools_context_create_user($empty, $data = NULL, $conf = FALSE) {
if ($data['type'] == 'current') { if ($data['type'] == 'current') {
global $user; global $user;
$data = $user; $data = $user;
$data->logged_in_user = TRUE; if (user_is_logged_in()) {
$data->logged_in_user = TRUE;
}
} }
else { else {
$data = user_load(array('uid' => $data['uid'])); $data = user_load(array('uid' => $data['uid']));
......
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