Permalink
Browse files

MDL-40662 block_course_overview: added addinstance capability to remo…

…ve debugging message due to system context being used on the 'Default My home page'
  • Loading branch information...
1 parent cd08b5c commit 95ddab5f31a5f29cdc0594b0795d418062811abc @markn86 markn86 committed Jul 30, 2013
Showing with 13 additions and 1 deletion.
  1. +12 −0 blocks/course_overview/db/access.php
  2. +1 −1 blocks/course_overview/version.php
@@ -34,5 +34,17 @@
),
'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'
)
);
@@ -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)

0 comments on commit 95ddab5

Please sign in to comment.