Quantcast
Channel: Assignment
Viewing all articles
Browse latest Browse all 9603

Re: importing grades locks students from submitting assignment

$
0
0
by steve miley.  

 Additional info - 

 In the source file  mod/assign/locallib.php around line 4088 in function grading_disabled,  is where check is done for the locked or overridden setting.  

public function grading_disabled($userid) {
global $CFG;

$gradinginfo = grade_get_grades($this->get_course()->id, 'mod', 'assign', $this->get_instance()->id, array($userid));
if (!$gradinginfo) {
return false;
}

if (!isset($gradinginfo->items[0]->grades[$userid])) {
return false;
}
$gradingdisabled = $gradinginfo->items[0]->grades[$userid]->locked || $gradinginfo->items[0]->grades[$userid]->overridden;

return $gradingdisabled;
}


Viewing all articles
Browse latest Browse all 9603

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>