Browse Source

Add new core addinstance capability (2.3 throws warnings if this doesn't exist)

MOODLE_23_STABLE
Dan Marsden 13 years ago
parent
commit
cf110bd09c
  1. 12
      db/access.php
  2. 2
      version.php

12
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,

2
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)

Loading…
Cancel
Save