-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
1.7.2
-
None
-
MOODLE_17_STABLE
After migrating to 1.7, events that were created by one teacher, can't be edited by another. I found someting in calendar/lib.php that corrected this, but it would be great if someone double checked it...
function: calendar_edit_event_allowed
1183 if ($event->userid) {
1184 if ($event->userid == $USER->id)
else
{ + 1187 return has_capability( 'moodle/calendar:manageentries', get_context_instance( CONTEXT_COURSE, $event->courseid)); + 1188 } 1189 } else if ($event->groupid) {
1190 $group = get_record('groups', 'id', $event->groupid);
1191 if($group === false)
It worked for me, but I can't understand why this "else" didn't exist... maybe event->userid should get there empty?
- duplicates
-
MDL-9186 adding "moodle/calendar:manageentries" does not allow a teacher to edit calendar events created by other users
-
- Closed
-