diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-04-11 17:39:58 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-04-23 15:15:02 -0700 |
commit | b41834fb8d53e2a7d81247046731f398a80dcb1b (patch) | |
tree | 25376c66a01cb44b37d9e1d5155c0c52453e9a00 /apps/files_trashbin | |
parent | e2145b13776f162b1b52730be473cff341337bef (diff) | |
download | nextcloud-server-b41834fb8d53e2a7d81247046731f398a80dcb1b.tar.gz nextcloud-server-b41834fb8d53e2a7d81247046731f398a80dcb1b.zip |
chore(trashbin): Store deleted by user
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/Trashbin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index ced40313d62..cc1414cd04c 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -228,7 +228,8 @@ class Trashbin { ->setValue('id', $query->createNamedParameter($targetFilename)) ->setValue('timestamp', $query->createNamedParameter($timestamp)) ->setValue('location', $query->createNamedParameter($targetLocation)) - ->setValue('user', $query->createNamedParameter($user)); + ->setValue('user', $query->createNamedParameter($user)) + ->setValue('deleted_by', $query->createNamedParameter($user)); $result = $query->executeStatement(); if (!$result) { \OC::$server->get(LoggerInterface::class)->error('trash bin database couldn\'t be updated for the files owner', ['app' => 'files_trashbin']); @@ -358,7 +359,8 @@ class Trashbin { ->setValue('id', $query->createNamedParameter($filename)) ->setValue('timestamp', $query->createNamedParameter($timestamp)) ->setValue('location', $query->createNamedParameter($location)) - ->setValue('user', $query->createNamedParameter($owner)); + ->setValue('user', $query->createNamedParameter($owner)) + ->setValue('deleted_by', $query->createNamedParameter($user)); $result = $query->executeStatement(); if (!$result) { \OC::$server->get(LoggerInterface::class)->error('trash bin database couldn\'t be updated', ['app' => 'files_trashbin']); |