Skip to content

Commit 5acc3b2

Browse files
committed
Allow search course by ajax to platform admin - refs BT#14687
1 parent beae46a commit 5acc3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/ajax/course.ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
}
126126
break;
127127
case 'search_course':
128-
if (api_is_teacher()) {
128+
if (api_is_teacher() || api_is_platform_admin()) {
129129
if (isset($_GET['session_id']) && !empty($_GET['session_id'])) {
130130
//if session is defined, lets find only courses of this session
131131
$courseList = SessionManager::get_course_list_by_session_id(

0 commit comments

Comments
 (0)