-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
3.0
When validate_context is called for a module, the module visibility and the view capability (if is used by the module) is checked:
https://github.com/moodle/moodle/blob/master/lib/modinfolib.php#L1921
Some external functions (LTI, imscp, folder, page, url, resource, assign) checks that capability after calling validate_context. We should avoid that double check.
- Testing discovered
-
MDL-52895 Some external function tests are checking incorrect capabilities
-
- Closed
-