MDL-32630 workshop_calendar_update() does not check for calendar permissions
commitde7daa83332283431ac273c13d68fa6b6c0b8603
authorDavid Mudrak <david@moodle.com>
Wed, 25 Apr 2012 13:35:59 +0000 (25 15:35 +0200)
committerDavid Mudrak <david@moodle.com>
Wed, 25 Apr 2012 13:35:59 +0000 (25 15:35 +0200)
tree274eb245fc367c239669d8ff988a89cfe67e3b76
parentead4f180a022c584556312c3738141012889f345
MDL-32630 workshop_calendar_update() does not check for calendar permissions

As discussed in MDL-32631, calendar_event::update() should not do
capability checks at all. Until that issue is fixed, we just explicitly
declare that no capability checks should be done.

The function workshop_calendar_update() is executed when adding or
updating a workshop instance (where permissions to modify the instance
were already checked and are sufficient) and in the upgrade code (where
no check should be performed anyway).
mod/workshop/lib.php