Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Commit

Permalink
Add new core addinstance capability (2.3 throws warnings if this does…
Browse files Browse the repository at this point in the history
…n't exist)
  • Loading branch information
danmarsden committed Jul 5, 2012
1 parent 6eb70b8 commit cf110bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@
)
),

'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,
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cf110bd

Please sign in to comment.