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