From 360755cc5635566e9d033fe3d6cdb9efbd7efb09 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Wed, 2 Oct 2019 12:26:44 +0200 Subject: [PATCH] MDL-66609 core_h5p: New capability h5p:setdisplayoptions --- lang/en/role.php | 1 + lib/db/access.php | 9 +++++++++ version.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lang/en/role.php b/lang/en/role.php index 6946b6f6a80..5460e58b4c3 100644 --- a/lang/en/role.php +++ b/lang/en/role.php @@ -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'; diff --git a/lib/db/access.php b/lib/db/access.php index 47a039258aa..336cce64b1d 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -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, + ) + ), ); diff --git a/version.php b/version.php index b139b3d7324..5be1a36a072 100644 --- a/version.php +++ b/version.php @@ -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.