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

Participant List shows all Course-Creators

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
      None
    • Environment:
      1.7 on Linux/Apache
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_17_STABLE

      Description

      A participant list on course level shows all course creators on site-level, even when they have never accessed the course.

      A solution maybe:
      user/index.php, Line 348, set "OR ul.courseid IS NOT NULL" instead of "OR ul.courseid IS NULL"

      $where = "WHERE (r.contextid = $context->id OR r.contextid in $listofcontexts)
      AND u.deleted = 0 $selectrole
      AND (ul.courseid = $course->id OR ul.courseid IS NOT NULL)
      AND u.username <> 'guest' ";
      $where .= get_lastaccess_sql($accesssince);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: