diff --git a/db/access.php b/db/access.php index 3a058d0..e6bc4e1 100644 --- a/db/access.php +++ b/db/access.php @@ -60,6 +60,18 @@ $capabilities = array( ) ), + 'mod/attforblock:addinstance' => array( + 'riskbitmask' => RISK_XSS, + + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW + ), + 'clonepermissionsfrom' => 'moodle/course:manageactivities' + ), + 'mod/attforblock:viewreports' => array( 'riskbitmask' => RISK_PERSONAL, diff --git a/version.php b/version.php index 9869f53..5792216 100644 --- a/version.php +++ b/version.php @@ -23,7 +23,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$module->version = 2011071600; // The current module version (Date: YYYYMMDDXX) +$module->version = 2011071601; // The current module version (Date: YYYYMMDDXX) $module->release = '2.4.0'; $module->cron = 0; // Period for cron to check this module (secs) $module->component = 'mod_attforblock'; // Full name of the plugin (used for diagnostics)