mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-17203 new option for disabling of calendar export
This commit is contained in:
parent
81f2bb8122
commit
dbf9d4cb37
5 changed files with 22 additions and 9 deletions
|
@ -8,6 +8,10 @@ require_once($CFG->libdir.'/bennu/bennu.inc.php');
|
|||
$username = required_param('username', PARAM_TEXT);
|
||||
$authtoken = required_param('authtoken', PARAM_ALPHANUM);
|
||||
|
||||
if (empty($CFG->enablecalendarexport)) {
|
||||
die('no export');
|
||||
}
|
||||
|
||||
//Fetch user information
|
||||
if (!$user = get_complete_user_data('username', $username)) {
|
||||
//No such user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue