Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Class to check if the H5P content can be edited for this plugin. More...
Static Public Member Functions | |
static | can_edit_content (\stored_file $file) |
Check if the user can edit an H5P file. | |
Class to check if the H5P content can be edited for this plugin.
|
static |
Check if the user can edit an H5P file.
In that case, this method will return true if the file belongs to mod_forum filearea is post and the user can edit the post where the H5P is.
stored_file | $file | The H5P file to check. |
boolean | Whether the user can edit or not the given file. |