MDL-65958 calendar: students should not see course event type
This commit is contained in:
+1
-1
@@ -3688,7 +3688,7 @@ function calendar_get_allowed_event_types(int $courseid = null) {
|
||||
|
||||
$types['user'] = has_capability('moodle/calendar:manageownentries', $context);
|
||||
|
||||
if (has_capability('moodle/calendar:manageentries', $context) || !empty($CFG->calendar_adminseesall)) {
|
||||
if (has_capability('moodle/calendar:manageentries', $context)) {
|
||||
$types['course'] = true;
|
||||
|
||||
$types['group'] = (!empty($groups) && has_capability('moodle/site:accessallgroups', $context))
|
||||
|
||||
Reference in New Issue
Block a user