diff --git a/db/access.php b/db/access.php index 2b8ca51..6c3f72f 100644 --- a/db/access.php +++ b/db/access.php @@ -81,17 +81,19 @@ 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, - 'manager' => CAP_ALLOW + 'manager' => CAP_ALLOW, + 'student' => CAP_ALLOW ) ), 'mod/lightboxgallery:addimage' => array( - 'riskbitmask' => RISK_SPAM | RISK_XSS, + 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( 'editingteacher' => CAP_ALLOW, - 'manager' => CAP_ALLOW + 'manager' => CAP_ALLOW, + 'teacher' => CAP_ALLOW, ) ), @@ -101,7 +103,8 @@ 'contextlevel' => CONTEXT_MODULE, 'legacy' => array( 'editingteacher' => CAP_ALLOW, - 'manager' => CAP_ALLOW + 'manager' => CAP_ALLOW, + 'teacher' => CAP_ALLOW, ) ), diff --git a/version.php b/version.php index 4358ce5..b3bef78 100644 --- a/version.php +++ b/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024012301; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2024012302; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022041900; // Requires this Moodle version. $plugin->component = 'mod_lightboxgallery';