Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44107

Deprecate $event->can_view() until its purpose has been clarified

XMLWordPrintable

    • 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.

            skodak Petr Skoda
            skodak Petr Skoda
            Ankit Agarwal Ankit Agarwal
            Marina Glancy Marina Glancy
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.