This pull request adds the capability _view_others_h5pcontents to a WordPress system.
Features
By default, the _view_others_h5pcontents capabilty will be set if the _edit_otherspages of WordPress is set (just like for the _edit_others_h5pcontents capability); a _view_otherspages capability would have been a better reference, but WordPress doesn't have one. Could be changed to use the _editposts capability as reference in order to not change current behavior.
If the _view_others_h5pcontents is not set for a role, users with that role ...
... will see a "My H5P contents" menu item instead of a "All H5P contents" menu item.
... will only see their contents listed in the data view
... cannot access other people's contents even when tampering with the ID of the the admin view URL
... can still access other people's contents using the embed URL unless embedding is not allowed for that content
Note
In the code, I expected the version number of the realease of this feature to be 1.14 (and tested an upgrade), but I did not yet bump the version number of the plugin itself!
This pull request adds the capability _view_others_h5pcontents to a WordPress system.
Features
Note
In the code, I expected the version number of the realease of this feature to be 1.14 (and tested an upgrade), but I did not yet bump the version number of the plugin itself!