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

New event when a file was viewed by user (for optional logging)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 1.9.12, 2.1
    • Fix Version/s: BACKEND
    • Component/s: Files API
    • Labels:
    • Workaround:
      Hide

      add a add_to_log function to /file.php manually (around the end of the file)

      Show
      add a add_to_log function to /file.php manually (around the end of the file)
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_21_STABLE

      Description

      Recently, i tried to get a log report of students viewing some files (they were not supposed to) and i found out that there is no logging of such activity. (In Moodle 1.9.x and Moodle 2.x)

      I suggest adding a log entry function to /file.php for both Moodle versions

      maybe:
      add_to_log($course->id, 'file', 'view', "/file.php/$course->id/$file", "$course->id");
      (not sure if the above syntax is good for both Moodle 1.9 and 2.x)

        Gliffy Diagrams

          Attachments

            Activity

            nadavkav Nadav Kavalerchik created issue -
            skodak Petr Skoda made changes -
            Field Original Value New Value
            Parent MDL-28443 [ 46008 ]
            Issue Type Improvement [ 4 ] Sub-task [ 5 ]
            salvetore Michael de Raadt made changes -
            Summary missing log entry for user viewing a file Use separate thread for logging
            Fix Version/s DEV backlog [ 10464 ]
            Labels triaged
            salvetore Michael de Raadt made changes -
            Parent MDL-28443 [ 46008 ]
            Rank (Obsolete) 168100000000
            Issue Type Sub-task [ 5 ] Improvement [ 4 ]
            salvetore Michael de Raadt made changes -
            Epic Link MDL-37658 [ 63606 ]
            salvetore Michael de Raadt made changes -
            Fix Version/s BACKEND [ 12582 ]
            Fix Version/s DEV backlog [ 10464 ]
            marina Marina Glancy made changes -
            Summary Use separate thread for logging New event when a file was viewed by user (for optional logging)
            marina Marina Glancy made changes -
            Epic Link MDL-37658 [ 63606 ] MDL-39952 [ 67071 ]
            salvetore Michael de Raadt made changes -
            Rank Ranked higher
            moodle.com moodle.com made changes -
            Epic Link MDL-39952 [ 67071 ] MDL-28443 [ 46008 ]
            moodle.com moodle.com made changes -
            Rank Ranked lower
            markn Mark Nelson made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Deferred [ 6 ]

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: