Skip to content
Snippets Groups Projects
Commit 29e3c4a6 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #22628 from owncloud/fix-thrashbin-cronjob

Skip users with no trashbin
parents 35423102 aac6932e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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