diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-02-24 18:08:45 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-02-24 18:08:45 +0300 |
commit | aac6932e92c82b7362b5772e74a59fa6a10f6a1d (patch) | |
tree | 74abf5e9cb35f8db8489c3e189cda1b9ee8cc4e9 /apps/files_trashbin/lib | |
parent | faf65e73b778867d36f0e13dd1b0f1a4ef1f4723 (diff) | |
download | nextcloud-server-aac6932e92c82b7362b5772e74a59fa6a10f6a1d.tar.gz nextcloud-server-aac6932e92c82b7362b5772e74a59fa6a10f6a1d.zip |
Skip users with no trashbin
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/backgroundjob/expiretrash.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/backgroundjob/expiretrash.php b/apps/files_trashbin/lib/backgroundjob/expiretrash.php index 7f4f4823918..4ee0658840b 100644 --- a/apps/files_trashbin/lib/backgroundjob/expiretrash.php +++ b/apps/files_trashbin/lib/backgroundjob/expiretrash.php @@ -120,6 +120,12 @@ class ExpireTrash extends \OC\BackgroundJob\TimedJob { return false; } + //Check if this user has a trashbin directory + $view = new \OC\Files\View('/' . $user); + if (!$view->is_dir('/files_trashbin/files')){ + return false; + } + \OC_Util::tearDownFS(); \OC_Util::setupFS($user); |