mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
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>
This commit is contained in:
parent
09940bcde6
commit
f7ca6149d6
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user