Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-36276 calendar: subscription events are no longer editable

  • Loading branch information...
commit e60598730d3d90ad5d5a93555a467ba7c2a5af14 1 parent 8ccaa29
@samhemelryk samhemelryk authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 calendar/lib.php
View
5 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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.