summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/Hooks.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_trashbin/lib/Hooks.php b/apps/files_trashbin/lib/Hooks.php
index eb585aa051c..036294cc144 100644
--- a/apps/files_trashbin/lib/Hooks.php
+++ b/apps/files_trashbin/lib/Hooks.php
@@ -39,10 +39,8 @@ class Hooks {
* to remove the used space for the trash bin stored in the database
*/
public static function deleteUser_hook($params) {
- if( \OCP\App::isEnabled('files_trashbin') ) {
- $uid = $params['uid'];
- Trashbin::deleteUser($uid);
- }
+ $uid = $params['uid'];
+ Trashbin::deleteUser($uid);
}
public static function post_write_hook($params) {