Properly log expiration date removal in audit log
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
20093ee8a0
commit
1b66bb7f1e
|
@ -295,6 +295,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,
|
||||
|
@ -305,6 +315,7 @@ class Sharing extends Action {
|
|||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs access of shared files
|
||||
|
|
Loading…
Reference in New Issue