MDL-60626 calendar: Check capabilities for api
authorDamyon Wiese <damyon@moodle.com>
Tue, 31 Oct 2017 03:25:48 +0000 (11:25 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 6 Nov 2017 03:11:28 +0000 (11:11 +0800)
commitaf25b8fc7f67e59b1b17262d926e069e2649ef38
treec32859c03e566a04cad3b363e26392a455a7758c
parent159b4e5d8c773fc1c71cb97e728d05f4cbb9d49e
MDL-60626 calendar: Check capabilities for api

All external functions must check all capabilities before returning data.
The calendar API itself does not check capabilities (I wish it did), so we must be
careful exposing these functions to webservices.
calendar/externallib.php
calendar/lib.php