Properly log expiration date removal in audit log
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
438a4429e9
commit
8abe437755
|
@ -294,15 +294,26 @@ class Sharing extends Action {
|
||||||
* @param array $params
|
* @param array $params
|
||||||
*/
|
*/
|
||||||
public function updateExpirationDate(array $params) {
|
public function updateExpirationDate(array $params) {
|
||||||
$this->log(
|
if ($params['date'] === null) {
|
||||||
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
|
$this->log(
|
||||||
$params,
|
'The expiration date of the publicly shared %s with ID "%s" has been removed',
|
||||||
[
|
$params,
|
||||||
'itemType',
|
[
|
||||||
'itemSource',
|
'itemType',
|
||||||
'date',
|
'itemSource',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
$this->log(
|
||||||
|
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
|
||||||
|
$params,
|
||||||
|
[
|
||||||
|
'itemType',
|
||||||
|
'itemSource',
|
||||||
|
'date',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue