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

Conditionlib stores grades in $SESSION

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.4.6, 2.5.2, 2.6
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE

      Description

      function condition_info_base::get_cached_grade_score() uses $SESSION to store user grades:
      https://github.com/moodle/moodle/blob/master/lib/conditionlib.php#L1163

      this should be MUC cache with ttl, otherwise student must re-login to access conditional activities/sections after teacher graded him. Discovered in MDLQA-6180 but has the same behaviour in 2.4 and 2.5

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: