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

Logging in private files block

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.2
    • Fix Version/s: None
    • Component/s: Events API
    • Labels:
      None
    • Database:
      MySQL
    • Testing Instructions:
      Hide
      • go to private files page
      • ensure \core\event\files_private_files_viewed was triggered (you can do it on /report/loglive/index.php page)
      • upload any file
      • ensure \core\event\files_private_files_modified was triggered and your uploaded file is mentioned in event description
      • now upload another file and delete previous
      • ensure \core\event\files_private_files_modified was triggered and uploaded and deleted files are mentioned in event description
      Show
      go to private files page ensure \core\event\files_private_files_viewed was triggered (you can do it on /report/loglive/index.php page) upload any file ensure \core\event\files_private_files_modified was triggered and your uploaded file is mentioned in event description now upload another file and delete previous ensure \core\event\files_private_files_modified was triggered and uploaded and deleted files are mentioned in event description
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      60305_loggin_in_private_files_block

      Description

      Hello! I develop a moodle plugin which monitors moodle logs and notify teacher about suspicious student activity such as "uploading a new file in a private files block from a different ip".
      But I discovered that user actions are not logged when he upload/delete files in private files block.
      Looking at blocks/private_files source code I see that it delegates form showing/processing to user/files.php, which delegates it to `file_postupdate_standard_filemanager` function.
      I can add missing event classes and trigger them. But I don't know proper place where to trigger them. Maybe, right in user/files.php?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: