MDL-66609 core_h5p: New capability h5p:setdisplayoptions

This commit is contained in:
Sara Arjona
2019-10-29 10:22:43 +08:00
committed by Andrew Nicols
parent 60bd7a8021
commit 360755cc56
3 changed files with 11 additions and 1 deletions
+1
View File
@@ -260,6 +260,7 @@ $string['grade:unlock'] = 'Unlock grades or items';
$string['grade:view'] = 'View own grades';
$string['grade:viewall'] = 'View grades of other users';
$string['grade:viewhidden'] = 'View hidden grades for owner';
$string['h5p:setdisplayoptions'] = 'Set the display options to an H5P content';
$string['highlightedcellsshowdefault'] = 'The permissions highlighted in the table below are the defaults for the role archetype currently selected above.';
$string['highlightedcellsshowinherit'] = 'The highlighted cells in the table below show the permission (if any) that will be inherited. Apart from the capabilities whose permission you actually want to alter, you should leave everything set to Inherit.';
$string['checkglobalpermissions'] = 'Check system permissions';
+9
View File
@@ -2430,4 +2430,13 @@ $capabilities = array(
'user' => CAP_ALLOW
)
),
// Set display option buttons to an H5P content.
'moodle/h5p:setdisplayoptions' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'editingteacher' => CAP_ALLOW,
)
),
);
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2019102500.01; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2019102500.02; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.