summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/lib/actions
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-03-20 18:36:36 +0100
committerLukas Reschke <lukas@statuscode.ch>2017-03-20 18:36:36 +0100
commitabaf909ba2ce729ab2b210ff3aef7a2ab879e3da (patch)
treed68113685b16cf59ef5835ce01ab8325d5447248 /apps/admin_audit/lib/actions
parent03a92eaf74ea3898f67a12e3c19216683abb44d8 (diff)
downloadnextcloud-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.php19
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'
+ ]
+ );
+ }
}