Skip to content
Snippets Groups Projects
Commit aac6932e authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Skip users with no trashbin

parent faf65e73
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,12 @@ class ExpireTrash extends \OC\BackgroundJob\TimedJob { ...@@ -120,6 +120,12 @@ class ExpireTrash extends \OC\BackgroundJob\TimedJob {
return false; 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::tearDownFS();
\OC_Util::setupFS($user); \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