MDL-36209 Allow teachers to assess submissions during the grading evaluation phase
This commit is contained in:
@@ -1547,8 +1547,11 @@ class workshop {
|
||||
public function assessing_allowed($userid) {
|
||||
|
||||
if ($this->phase != self::PHASE_ASSESSMENT) {
|
||||
// assessing is not allowed but in the assessment phase
|
||||
return false;
|
||||
// assessing is allowed in the assessment phase only, unless the user is a teacher
|
||||
// providing additional assessment during the evaluation phase
|
||||
if ($this->phase != self::PHASE_EVALUATION or !has_capability('mod/workshop:overridegrades', $this->context, $userid)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$now = time();
|
||||
|
||||
Reference in New Issue
Block a user