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

Replace all checks for the 'viewparticipants' capability with function

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59977_master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              markn Mark Nelson
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Jun Pataleta
              Tester:
              Marina Glancy
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17