Skip to content

Commit

Permalink
Merge branch 'wip-MDL-36276-m24' of git://github.com/samhemelryk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Nov 16, 2012
2 parents 716bf54 + e605987 commit c941aaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c941aaf

Please sign in to comment.