From 977f14582f402e57c56272827fbf4b7d6392bc88 Mon Sep 17 00:00:00 2001 From: S Doiphode Date: Fri, 15 Mar 2024 20:06:33 +0000 Subject: [PATCH 1/2] Allowing assigning student --- db/access.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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, ) ), From 50f4e7596c03233c00eba096d8682a5440d8153f Mon Sep 17 00:00:00 2001 From: S Doiphode Date: Fri, 15 Mar 2024 20:08:01 +0000 Subject: [PATCH 2/2] Update version number --- version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';