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

get_users_by_capability generates u.id IN () when no users have accessallgroups

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.2, 2.1, 2.2
    • 2.0.4, 2.1.1
    • Quiz
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      1. Create a course with some groups containing teachers and students
      2. override the teacher permission, so they don't have accessallgroups
      3. Create a quiz in separate groups mode, and attempt it as a teacher.
      4. Try to view the quiz reports as a teacher.

      Show
      1. Create a course with some groups containing teachers and students 2. override the teacher permission, so they don't have accessallgroups 3. Create a quiz in separate groups mode, and attempt it as a teacher. 4. Try to view the quiz reports as a teacher.

    Description

      See http://moodle.org/mod/forum/post.php?reply=755514.

      It is possible to get the get_users_by_capability call in quiz_send_notification_emails to generate the SQL "OR u.id IN ()".

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Marina Glancy Marina Glancy
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1/Aug/11