mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-70049 assign: count_submissions_need_grading call when can't grade
This commit is contained in:
parent
f0eb6a5729
commit
c8be1d7e94
@ -1554,8 +1554,8 @@ function mod_assign_core_calendar_provide_event_action(calendar_event $event,
|
||||
'id' => $cm->id,
|
||||
'action' => 'grader'
|
||||
]);
|
||||
$itemcount = $assign->count_submissions_need_grading();
|
||||
$actionable = $assign->can_grade($userid) && (time() >= $assign->get_instance()->allowsubmissionsfromdate);
|
||||
$itemcount = $actionable ? $assign->count_submissions_need_grading() : 0;
|
||||
} else {
|
||||
$usersubmission = $assign->get_user_submission($userid, false);
|
||||
if ($usersubmission && $usersubmission->status === ASSIGN_SUBMISSION_STATUS_SUBMITTED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user