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

Session not correctly cleared when switching users with setUser in unit tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.9.5, 3.0.3
    • 3.0.1, 3.0.2
    • Unit tests

      Discovered while experimenting with MDL-52000.
      I'm calling a function, forum_print_overview, which sets $SESSION->currentgroup.
      I'm then changing user with setUser() to a user in a different group, and calling the same function again.
      However it seems that the session is not cleaned, and the same currentgroup persists between calls.

            rajeshtaneja Rajesh Taneja
            dobedobedoh Andrew Lyons
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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