diff --git a/confirm.php b/confirm.php index 800806b..742aafc 100644 --- a/confirm.php +++ b/confirm.php @@ -26,6 +26,10 @@ require('../../config.php'); require_once($CFG->libdir.'/authlib.php'); +require_once($CFG->libdir.'/adminlib.php'); + +require_login(); +require_capability('moodle/user:update', context_system::instance()); $data = optional_param('data', '', PARAM_RAW); // Formatted as: secret/username. diff --git a/version.php b/version.php index f54714c..cfe3d2d 100644 --- a/version.php +++ b/version.php @@ -26,8 +26,8 @@ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2017072000; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2019070400; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2015051101; // Requires this Moodle version. $plugin->component = 'auth_emailadmin'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE; -$plugin->release = '1.4.1'; +$plugin->release = '1.4.2';