Add new core addinstance capability (2.3 throws warnings if this doesn't exist)
authorDan Marsden <dan@danmarsden.com>
Thu, 5 Jul 2012 01:22:51 +0000 (13:22 +1200)
committerDan Marsden <dan@danmarsden.com>
Thu, 5 Jul 2012 01:22:51 +0000 (13:22 +1200)
db/access.php
version.php

index 3a058d0..e6bc4e1 100644 (file)
@@ -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,
index 9869f53..5792216 100644 (file)
@@ -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)