Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[publication] Fix download prevention by overriding download notification function #9208

17 changes: 17 additions & 0 deletions modules/publication/php/files.class.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

// @phan-file-suppress PhanUnusedProtectedMethodParameter
// Suppressed due to false-positive for doDownloadNotification function
// Unused parameter $file required to match parent signature

namespace LORIS\publication;

/**
Expand Down Expand Up @@ -49,4 +54,16 @@ class Files extends \LORIS\Http\FilesPassthroughEndpoint
{
return "/files/";
}

/**
* Send a notification for the download.
*
* @param string $file The filename being downloaded
*
* @return void
*/
protected function doDownloadNotification($file)
{
// Not implemented for this module
}
}
Loading