diff --git a/calendar/lib.php b/calendar/lib.php index 698f40375b1..d815f823728 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1465,6 +1465,11 @@ function calendar_edit_event_allowed($event) { return false; } + // You cannot edit calendar subscription events presently. + if (!empty($event->subscriptionid)) { + return false; + } + $sitecontext = context_system::instance(); // if user has manageentries at site level, return true if (has_capability('moodle/calendar:manageentries', $sitecontext)) {