-
Improvement
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-67057-master -
-
H5P Sprint Relase 3.8
Whilst reviewing the H5P integration (MDL-66609) an issue has been raised to control who can install/update the content-type libraries.
There are 2 different approaches, one taking the libraries always from the H5P hub (api.h5p.org) or similar and another adding a capability to admin and managers (h5p:uploadlibraries) to let them upload/deploy the libraries in the .h5p file.
The first looks nicer but, as for now the H5P hub is only returning the latest content-type libraries, we'll go for the second one for now (and will try to go for the first in the future).
Requirements:
- Create a new capability: h5p:updatelibraries
- This capability would be enabled by default for managers and admins, but not for teachers
- To write/overwrite a new content type library, a user would need the new h5p:updatelibraries capability
- Users with h5p:deploy capability but without h5p:updatelibraries capability will be able to upload new H5P content that uses existing libraries in the site. In case any of the libraries they are trying to use in the uploaded content is not available, they would get an error asking them to contact their admin to make that library available, because they don't have h5p:updatelibraries permission
- blocks
-
MDL-67059 Add Admin UI to manually upload H5P content-type libraries
- Closed
- has a QA test
-
MDLQA-14116 Only users with the required capability can deploy H5P content
- Open
-
MDLQA-15981 CLONE - Only users with the required capability can deploy H5P content
- Open
-
MDLQA-15392 CLONE - Only users with the required capability can deploy H5P content
- Passed