Properly log expiration date removal in audit log

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-05-19 10:09:48 +02:00 committed by Lukas Reschke
parent 438a4429e9
commit 8abe437755
1 changed files with 20 additions and 9 deletions

View File

@ -294,6 +294,16 @@ class Sharing extends Action {
* @param array $params
*/
public function updateExpirationDate(array $params) {
if ($params['date'] === null) {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been removed',
$params,
[
'itemType',
'itemSource',
]
);
} else {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
$params,
@ -304,6 +314,7 @@ class Sharing extends Action {
]
);
}
}
/**
* Logs access of shared files