|
@@ -8276,7 +8276,7 @@ function api_can_login_as($loginAsUserId, $userId = null)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- $userInfo = api_get_user_info($userId);
|
|
|
|
|
|
+ $userInfo = api_get_user_info($loginAsUserId);
|
|
$isDrh = function () use ($loginAsUserId) {
|
|
$isDrh = function () use ($loginAsUserId) {
|
|
if (api_is_drh()) {
|
|
if (api_is_drh()) {
|
|
if (api_drh_can_access_all_session_content()) {
|
|
if (api_drh_can_access_all_session_content()) {
|