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

course/info.php displaying students as teachers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Course
    • Labels:
      None
    • Environment:
      php 5.1.6
      apache 2.2.3
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In course/info.php the call to get_role_users() is returning students+teachers for display in the list of teachers.

      It seems the test for is_int($roleid) in get_role_users() is failing.

      Calling get_role_users($roleid+0, ...) will cause the $roleselect sql fragment to be created and the function
      returns the expected results (with roleid=3 in this case).

      Entered as a possible security issue as students != teachers

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            koning Gary Marshall
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08