MDL-37765 course: Add capability to ignore availability restrictions.

Allow a role to view activities without addressing the restriction rules.
This commit is contained in:
Jakob
2017-03-27 08:37:27 -07:00
parent 216ea39be7
commit 6a36b8526e
8 changed files with 73 additions and 13 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ class info_module extends info {
}
protected function get_view_hidden_capability() {
return 'moodle/course:viewhiddenactivities';
return 'moodle/course:ignoreavailabilityrestrictions';
}
public function get_user_list_sql($onlyactive = true) {