diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-03-20 18:36:36 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-03-20 18:36:36 +0100 |
commit | abaf909ba2ce729ab2b210ff3aef7a2ab879e3da (patch) | |
tree | d68113685b16cf59ef5835ce01ab8325d5447248 /apps/admin_audit/lib/actions | |
parent | 03a92eaf74ea3898f67a12e3c19216683abb44d8 (diff) | |
download | nextcloud-server-abaf909ba2ce729ab2b210ff3aef7a2ab879e3da.tar.gz nextcloud-server-abaf909ba2ce729ab2b210ff3aef7a2ab879e3da.zip |
Log access to preview images
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/admin_audit/lib/actions')
-rw-r--r-- | apps/admin_audit/lib/actions/files.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/admin_audit/lib/actions/files.php b/apps/admin_audit/lib/actions/files.php index d7b35aa2d3e..d0a030d892a 100644 --- a/apps/admin_audit/lib/actions/files.php +++ b/apps/admin_audit/lib/actions/files.php @@ -134,4 +134,23 @@ class Files extends Action { ] ); } + + /** + * Logs preview access to a file + * + * @param array $params + */ + public function preview(array $params) { + $this->log( + 'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")', + $params, + [ + 'path', + 'width', + 'height', + 'crop', + 'mode' + ] + ); + } } |