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

User course last access time is updated every time an external function validates the course context

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.5.2
    • 3.6
    • Events API

    Description

      This was discovered by pferre22 while testing the new recent courses functionality.

      It seems that calls to user_accesstime_log() (to update user access time to a course) are located in require_login and require_course_login functions.

      This is not the correct place because it means that every time a WebService function evaluates a course context via validate_context (even if the user is not accessing the course, just for checking if he can effectively access) the access time is updated.

      Right now, for example, the last access time for all the user courses are updated every time a user access the Course overview page in the Mobile app (again, without accessing to any of those courses).

      Attachments

        Issue Links

          Activity

            People

              damyon Damyon Wiese
              jleyva Juan Leyva
              Juan Leyva Juan Leyva
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/18