From cf110bd09cd25fc698ccdbe285d6a1c16f6fb19a Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 5 Jul 2012 13:22:51 +1200 Subject: [PATCH] Add new core addinstance capability (2.3 throws warnings if this doesn't exist) --- db/access.php | 12 ++++++++++++ version.php | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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)