Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ccaa29
)
MDL-36276 calendar: subscription events are no longer editable
author
Sam Hemelryk
<sam@moodle.com>
Wed, 14 Nov 2012 00:34:54 +0000
(13:34 +1300)
committer
Sam Hemelryk
<sam@moodle.com>
Wed, 14 Nov 2012 00:34:54 +0000
(13:34 +1300)
calendar/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/calendar/lib.php
b/calendar/lib.php
index
698f403
..
d815f82
100644
(file)
--- a/
calendar/lib.php
+++ b/
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)) {