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

Choice module does not respect roles when used on the main site page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.7.1
    • 1.7
    • Choice, Roles / Access
    • None
    • PHP 5.1.4
      My SQL 4.1.21
    • Any
    • MOODLE_17_STABLE
    • MOODLE_17_STABLE

      See Discussion : http://moodle.org/mod/forum/discuss.php?d=58497

      Choice/report.php does not get all of the users who can participate in the choice using roles.
      It only gets the users who have the role of student assigned.

      The problem seems to reside in report.php around line 48:

      $users = get_course_users($course->id, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber') + get_admins();

      It doesn't seem to list any users who are defined using one of the legacy roles (student, teacher, admin, creator)

            lazyfish Yu Zhang
            sbourget Stephen Bourget
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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