Merge pull request #22628 from owncloud/fix-thrashbin-cronjob
Skip users with no trashbin
This commit is contained in:
commit
29e3c4a60e
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue