Skip to content
Snippets Groups Projects
Unverified Commit f7ca6149 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Emptry trashbin


A delete on a users trashbin will empty it (the trashbin won't be
deleted of course)

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent 09940bcd
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment