Skip to content

Commit

Permalink
Get request from get_user_popup in user_manager.ajax.php only by ajax #…
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Sep 4, 2020
1 parent aff65c3 commit 965709a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/inc/ajax/user_manager.ajax.php
Expand Up @@ -12,6 +12,7 @@
require_once __DIR__.'/../global.inc.php';

$request = Request::createFromGlobals();
$isRequestByAjax = $request->isXmlHttpRequest();

$action = $_GET['a'];

Expand All @@ -36,6 +37,10 @@
}
break;
case 'get_user_popup':
if (!$isRequestByAjax) {
break;
}

$courseId = (int) $request->get('course_id');
$sessionId = (int) $request->get('session_id');
$userId = (int) $request->get('user_id');
Expand Down

0 comments on commit 965709a

Please sign in to comment.