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

Typo in user_get_user_details_courses

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7
    • 2.5.5, 2.6.2, 2.7
    • Libraries
    • MOODLE_27_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • 44279-27
    • Hide

      Run the following unit tests as I added new unit tests to trigger this bug.

      vendor/bin/phpunit user/tests/externallib_test.php

      Show
      Run the following unit tests as I added new unit tests to trigger this bug. vendor/bin/phpunit user/tests/externallib_test.php

    Description

      There is a rather nasty wee typo in user/lib.php user_get_user_details_courses.

      if ($can_view_user_details_cap($user, $course) || ($user->id == $USER->id) || has_coursecontact_role($user->id)) {
      

      That function has a $ in front of it.

      Attachments

        Activity

          People

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Petr Skoda Petr Skoda
            Damyon Wiese Damyon Wiese
            Marina Glancy Marina Glancy
            David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Mar/14