Skip to content

Commit c82701a

Browse files
author
Ron Lucke
committed
fix user progress
1 parent b68fbc0 commit c82701a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/mooc/ui/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public function getProgress()
419419
public function setGrade($grade)
420420
{
421421
// only students of this course get grades
422-
if (!$this->getCurrentUser()->canUpdate($this->_model)) {
422+
if (!$this->getCurrentUser()->hasPerm($this->container['cid'], 'tutor')) {
423423
$this->getProgress()->grade = $grade;
424424
}
425425
}

0 commit comments

Comments
 (0)