diff --git a/mod/label/db/access.php b/mod/label/db/access.php index 57677e629b9..571004f6655 100644 --- a/mod/label/db/access.php +++ b/mod/label/db/access.php @@ -38,4 +38,12 @@ $capabilities = array( 'clonepermissionsfrom' => 'moodle/course:manageactivities' ), + 'mod/label:view' => array( + 'captype' => 'read', + 'contextlevel' => CONTEXT_MODULE, + 'archetypes' => array( + 'user' => CAP_ALLOW, + 'guest' => CAP_ALLOW + ) + ), ); diff --git a/mod/label/lang/en/label.php b/mod/label/lang/en/label.php index 65c12a0ac57..1f6e9727400 100644 --- a/mod/label/lang/en/label.php +++ b/mod/label/lang/en/label.php @@ -32,6 +32,7 @@ $string['dndresizewidth'] = 'Resize drag and drop width'; $string['dnduploadlabel'] = 'Add image to course page'; $string['dnduploadlabeltext'] = 'Add a label to the course page'; $string['label:addinstance'] = 'Add a new label'; +$string['label:view'] = 'View labels'; $string['labeltext'] = 'Label text'; $string['modulename'] = 'Label'; $string['modulename_help'] = 'The label module enables text and multimedia to be inserted into the course page in between links to other resources and activities. Labels are very versatile and can help to improve the appearance of a course if used thoughtfully. diff --git a/mod/label/version.php b/mod/label/version.php index a688937d517..dd2859dd0e7 100644 --- a/mod/label/version.php +++ b/mod/label/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2016052300; // The current module version (Date: YYYYMMDDXX) +$plugin->version = 2016080400; // The current module version (Date: YYYYMMDDXX) $plugin->requires = 2016051900; // Requires this Moodle version $plugin->component = 'mod_label'; // Full name of the plugin (used for diagnostics) $plugin->cron = 0;