Skip to content

Commit 83846c0

Browse files
committed
Exercise: Fix pending exercise for admins that do not have courses to show all results anyway - refs BT#21976
1 parent 9b0c2a4 commit 83846c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/exercise.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@ public static function get_exam_results_data(
26052605
if (empty($courseInfo)) {
26062606
return [];
26072607
}
2608-
} elseif (false === api_is_session_admin()) {
2608+
} elseif (false === api_is_platform_admin(true,false)) {
26092609
$courses = CourseManager::get_courses_list_by_user_id(api_get_user_id(), $showAttemptsInSessions, false, false);
26102610

26112611
if (empty($courses)) {

0 commit comments

Comments
 (0)