mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-42690 mod_assign: remove submit button from single grading interface
This commit is contained in:
parent
32bf2cfc64
commit
19195b602c
1 changed files with 1 additions and 16 deletions
|
@ -2762,21 +2762,6 @@ class assign {
|
|||
$extensionduedate = $flags->extensionduedate;
|
||||
}
|
||||
$showedit = $this->submissions_open($userid) && ($this->is_any_submission_plugin_enabled());
|
||||
|
||||
if ($teamsubmission) {
|
||||
$showsubmit = $showedit &&
|
||||
$teamsubmission &&
|
||||
($teamsubmission->status != ASSIGN_SUBMISSION_STATUS_SUBMITTED) &&
|
||||
!$this->submission_empty($teamsubmission);
|
||||
} else {
|
||||
$showsubmit = $showedit &&
|
||||
$submission &&
|
||||
($submission->status != ASSIGN_SUBMISSION_STATUS_SUBMITTED) &&
|
||||
!$this->submission_empty($submission);
|
||||
}
|
||||
if (!$this->get_instance()->submissiondrafts) {
|
||||
$showsubmit = false;
|
||||
}
|
||||
$viewfullnames = has_capability('moodle/site:viewfullnames', $this->get_course_context());
|
||||
|
||||
$submissionstatus = new assign_submission_status($instance->allowsubmissionsfromdate,
|
||||
|
@ -2798,7 +2783,7 @@ class assign {
|
|||
$this->get_course()->id,
|
||||
assign_submission_status::GRADER_VIEW,
|
||||
$showedit,
|
||||
$showsubmit,
|
||||
false,
|
||||
$viewfullnames,
|
||||
$extensionduedate,
|
||||
$this->get_context(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue