Merge branch 'MDL-86914-501' of https://github.com/sarjona/moodle into MOODLE_501_STABLE
This commit is contained in:
@@ -106,14 +106,6 @@ class overview extends \core_courseformat\activityoverviewbase {
|
||||
);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function get_completion_overview(): ?overviewitem {
|
||||
if (has_capability('mod/choice:readresponses', $this->cm->context)) {
|
||||
return null; // If the user can read responses, we don't show the completion status as it is for the student only.
|
||||
}
|
||||
return parent::get_completion_overview();
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function get_extra_overview_items(): array {
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user