mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-55464 mod_label: Add view permissions
This commit is contained in:
parent
7752762674
commit
9f03fc3119
@ -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
|
||||
)
|
||||
),
|
||||
);
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user