mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-36276 calendar: subscription events are no longer editable
This commit is contained in:
parent
8ccaa296fa
commit
e60598730d
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user