diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-16 14:44:49 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-04-25 20:25:10 +0200 |
commit | f7ca6149d63d09f8ea0828770a243cf61295e2b9 (patch) | |
tree | d846abfe73bb94cfced2479b086d1893d8f1070f /apps/files_trashbin/lib | |
parent | 09940bcde697df90423cb0b4ecb4e62ba31bfaf7 (diff) | |
download | nextcloud-server-f7ca6149d63d09f8ea0828770a243cf61295e2b9.tar.gz nextcloud-server-f7ca6149d63d09f8ea0828770a243cf61295e2b9.zip |
Emptry trashbin
A delete on a users trashbin will empty it (the trashbin won't be
deleted of course)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/Sabre/TrashHome.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Sabre/TrashHome.php b/apps/files_trashbin/lib/Sabre/TrashHome.php index 45a95ccea80..9c460dbba20 100644 --- a/apps/files_trashbin/lib/Sabre/TrashHome.php +++ b/apps/files_trashbin/lib/Sabre/TrashHome.php @@ -44,7 +44,7 @@ class TrashHome implements ICollection { } public function delete() { - throw new Forbidden('Permission denied to delete your trashbin'); + \OCA\Files_Trashbin\Trashbin::deleteAll(); } public function getName(): string { |