-
Task
-
Resolution: Fixed
-
Major
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_27_STABLE
-
w13_
MDL-44107_m27_canview -
-
40
-
BACKEND Sprint 12
The can_view() method in event base looked like a good idea, unfortunately it is not easy and cheap to implement it everywhere.
At preset it is returns true for admin only which makes it unusable in reports.
At present the reports are expected to use own capability together with \core\log\reader::can_access($reportcontext) and ignore the \core\event\base::can_view() method.