Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/session/session.php
Show First 20 Lines • Show All 1117 Lines • ▼ Show 20 Line(s) | |||||
* | * | ||||
* @return bool | * @return bool | ||||
*/ | */ | ||||
function LoggedIn() | function LoggedIn() | ||||
{ | { | ||||
$user_id = $this->RecallVar('user_id'); | $user_id = $this->RecallVar('user_id'); | ||||
$ret = $user_id > 0; | $ret = $user_id > 0; | ||||
if (($this->RecallVar('admin') == 1 || defined('ADMIN')) && ($user_id == USER_ROOT)) { | |||||
if ( ($this->RecallVar('admin') == 1 || defined('ADMIN')) | |||||
&& ($user_id == USER_ROOT || $user_id == USER_SYSTEM) | |||||
) { | |||||
alex: Since you're at this line please do minimal CS fixing. | |||||
$ret = true; | $ret = true; | ||||
} | } | ||||
alexUnsubmitted Not Done ReplyCode is executed during tests, but I have no idea how to test its result. alex: Code is executed during tests, but I have no idea how to test its result. | |||||
return $ret; | return $ret; | ||||
} | } | ||||
} | } |
Since you're at this line please do minimal CS fixing.