MDL-40662 block_course_overview: added addinstance capability to remove debugging message due to system context being used on the 'Default My home page'

This commit is contained in:
Mark Nelson
2013-08-01 12:51:18 +08:00
parent cd08b5c878
commit 95ddab5f31
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -34,5 +34,17 @@ $capabilities = array(
),
'clonepermissionsfrom' => 'moodle/my:manageblocks'
),
'block/course_overview:addinstance' => array(
'riskbitmask' => RISK_SPAM | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_BLOCK,
'archetypes' => array(
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/site:manageblocks'
)
);
+1 -1
View File
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
$plugin->version = 2012121000; // The current plugin version (Date: YYYYMMDDXX)
$plugin->version = 2012121001; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012112900; // Requires this Moodle version
$plugin->component = 'block_course_overview'; // Full name of the plugin (used for diagnostics)