Skip to content

Commit

Permalink
MDL-36755 blocks: the course overview block can only be added to the …
Browse files Browse the repository at this point in the history
…My Moodle page so removing unnecessary addinstance cap
  • Loading branch information
mdjnelson committed Nov 30, 2012
1 parent f42c34a commit 7428077
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions blocks/course_overview/db/access.php
Expand Up @@ -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'
),
)
);
1 change: 0 additions & 1 deletion blocks/course_overview/lang/en/block_course_overview.php
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion blocks/course_overview/version.php
Expand Up @@ -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.