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

System context used incorrectly instead of user context in has_capability('moodle/user:update', $systemcontext

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE

      In couple of places in the code the capability check is done as

      has_capability('moodle/user:update', $systemcontext)

      This can be done at the user context instead of the system context

      Example :
      In user/profile/lib.php function

      is_editable

            Unassigned Unassigned
            farhan6318 Farhan Karmali
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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