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

Replace all checks for the 'viewparticipants' capability with function

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.4
    • 3.4
    • Course
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-59977_master
    • Hide
      1. Do a grep for ":viewparticipants" and confirm there are no occurrences in the code where it should be calling course_can_view_participants() instead. Ignore the case in message/classes/api.php, course/lib.php, PHPUnit and Behat tests.
      2. Ensure Behat is passing.
      Show
      Do a grep for ":viewparticipants" and confirm there are no occurrences in the code where it should be calling course_can_view_participants() instead. Ignore the case in message/classes/api.php, course/lib.php, PHPUnit and Behat tests. Ensure Behat is passing.

      We now allow the following capabilities in order to check the participant page -

      1. 'moodle/course:viewparticipants' (or 'moodle/site:viewparticipants' depending on context).
      2. 'moodle/course:enrolreview'

      We need to go through Moodle and convert the direct check on 'viewparticipants' with a function that uses or logic.

            markn Mark Nelson
            markn Mark Nelson
            Damyon Wiese Damyon Wiese
            Jun Pataleta Jun Pataleta
            Marina Glancy Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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