Skip to content
Browse files

MDL-36755 blocks: the course overview block can only be added to the …

…My Moodle page so removing unnecessary addinstance cap
  • Loading branch information...
1 parent f42c34a commit 7428077d4b498eca890dcde504fe3999cc94ad09 @markn86 markn86 committed Nov 30, 2012
View
15 blocks/course_overview/db/access.php
@@ -34,18 +34,5 @@
),
'clonepermissionsfrom' => 'moodle/my:manageblocks'
- ),
-
- 'block/course_overview:addinstance' => array(
- 'riskbitmask' => RISK_SPAM | RISK_XSS,
-
- 'captype' => 'write',
- 'contextlevel' => CONTEXT_BLOCK,
- 'archetypes' => array(
- 'editingteacher' => CAP_ALLOW,
- 'manager' => CAP_ALLOW
- ),
-
- 'clonepermissionsfrom' => 'moodle/site:manageblocks'
- ),
+ )
);
View
1 blocks/course_overview/lang/en/block_course_overview.php
@@ -27,7 +27,6 @@
$string['collapseall'] = 'Collapse All Course Lists';
$string['configotherexpanded'] = 'If enabled, Other Courses will be expanded by default unless overriden by user preferences.';
$string['configpreservestates'] = 'If enabled, the collapsed/expanded states set by the user are stored and used on each load.';
-$string['course_overview:addinstance'] = 'Add a new course overview block';
$string['course_overview:myaddinstance'] = 'Add a new course overview block to the My Moodle page';
$string['defaultmaxcourses'] = 'Default maximum courses';
$string['defaultmaxcoursesdesc'] = 'Maximum courses which should be displayed on course overview block, 0 will show all courses';
View
2 blocks/course_overview/version.php
@@ -24,6 +24,6 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2012091600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->version = 2012113000; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2012061700; // Requires this Moodle version
$plugin->component = 'block_course_overview'; // Full name of the plugin (used for diagnostics)

0 comments on commit 7428077

Please sign in to comment.
Something went wrong with that request. Please try again.