XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Administration
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      After some chat in HQ with Petr it seems that the role_unassign() function itself includes the necessary code to delete, for COURSE contexts, the associated user_lastaccess record if the user hasn't anymore the course:view capabilty.

      But some sites can show orphan records that never are deleted from that funcion, so I would introduce one new iterator in cron.php in order to detect and delete all those orphan records from user_lastaccess.

      Call this the ORPHAN_USER_LASTACCESS_PROBLEM from now. Patch attached. Requires approval, plz.

      ===

      Patch applied and working.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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