MDL-36276 calendar: subscription events are no longer editable

This commit is contained in:
Sam Hemelryk 2012-11-14 13:34:54 +13:00
parent 8ccaa296fa
commit e60598730d

View File

@ -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)) {