diff --git a/blocks/badges/db/access.php b/blocks/badges/db/access.php index 3470f53f8b5..5804558ff37 100644 --- a/blocks/badges/db/access.php +++ b/blocks/badges/db/access.php @@ -26,11 +26,11 @@ $capabilities = array( 'block/badges:addinstance' => array( - 'riskbitmask' => RISK_PERSONAL, 'captype' => 'read', - 'contextlevel' => CONTEXT_SYSTEM, - 'archetypes' => array( - 'user' => CAP_ALLOW, + 'contextlevel' => CONTEXT_BLOCK, + 'archetypes' => array( + 'editingteacher' => CAP_ALLOW, + 'manager' => CAP_ALLOW ), 'clonepermissionsfrom' => 'moodle/site:manageblocks' ), diff --git a/blocks/badges/version.php b/blocks/badges/version.php index 4b9e10d0389..2dfca1c6708 100644 --- a/blocks/badges/version.php +++ b/blocks/badges/version.php @@ -25,6 +25,6 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2013050100; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2013050101; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2013050100; // Requires this Moodle version. $plugin->component = 'block_badges'; \ No newline at end of file