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

Allow file deletion auditing

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.4
    • Fix Version/s: None
    • Component/s: Course, Files API, Libraries
    • Labels:
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      There are certain incidents that are caused by users (teachers) deleting unconsciously some course files. Currently the only way to guess that a user has deleted a file is to explore web server logs and it's really imprecise.

      This patch (against 1.9.4) introduces a log each time a user tries to delete a file or directory. It stores who deleted the file, what course, when, the file he/she tried to delete and if the operation has been successful or not.

      To see file deletion attempts:

      SELECT *
      FROM mdl_log
      WHERE module='files' AND
      action='delete';

      Thanks for your time

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jsegarra Juan Segarra Montesinos
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: