Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-18335_m22' of git://github.com/rwijaya/moodle into …

…MOODLE_22_STABLE
  • Loading branch information...
commit 4b641eaf823b09a5485da0ce612b85ce6285e556 2 parents 9d3f3b5 + 81308ee
@danpoltawski danpoltawski authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  calendar/lib.php
View
1  calendar/lib.php
@@ -1552,6 +1552,7 @@ function calendar_get_allowed_types(&$allowed, $course = null) {
}
if ($course->id != SITEID) {
$coursecontext = get_context_instance(CONTEXT_COURSE, $course->id);
+ $allowed->user = has_capability('moodle/calendar:manageownentries', $coursecontext);
if (has_capability('moodle/calendar:manageentries', $coursecontext)) {
$allowed->courses = array($course->id => 1);
Please sign in to comment.
Something went wrong with that request. Please try again.