Permalink
Browse files

MDL-36276 calendar: subscription events are no longer editable

  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Nov 14, 2012
1 parent 8ccaa29 commit e60598730d3d90ad5d5a93555a467ba7c2a5af14
Showing with 5 additions and 0 deletions.
  1. +5 −0 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)) {

0 comments on commit e605987

Please sign in to comment.