mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-59393 calendar: stop user editing module events
This commit is contained in:
parent
5ca142dc5b
commit
909d08588d
5 changed files with 72 additions and 5 deletions
|
@ -114,7 +114,7 @@ $formoptions = new stdClass;
|
|||
if ($eventid !== 0) {
|
||||
$title = get_string('editevent', 'calendar');
|
||||
$event = calendar_event::load($eventid);
|
||||
if (!calendar_edit_event_allowed($event)) {
|
||||
if (!calendar_edit_event_allowed($event, true)) {
|
||||
print_error('nopermissions');
|
||||
}
|
||||
$event->action = $action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue