Open PhMemmel opened 4 months ago
Added capability check for mod/mootimeter:view
on all external functions and removed the enrol checks with 33484b07811e7f9b5bb46eb81eab3a92ceb83538
Moving all cap checks to the upper level of the external functions is still a todo.
The external functions currently are not checking the necessary capabilities. There are some checks later on, but it should be reworked like this:
require_capability('mod/mootimeter:view', $modulecontext);
classes/local/pagelist.php:72
will not be needed anymore and should be removed