summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-08-09 12:28:53 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2016-08-10 10:51:51 +0200
commitd59cb04427128bd04311a24595599acb0da5589f (patch)
treee1b2e8fa8dbe51fd1f48b516a2a4214b7c617da3 /apps/files_trashbin/lib
parentd6bee61131d9702483830d39819e6204588eb800 (diff)
downloadnextcloud-server-d59cb04427128bd04311a24595599acb0da5589f.tar.gz
nextcloud-server-d59cb04427128bd04311a24595599acb0da5589f.zip
Skip version and trash expiry for users that never logged in
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
index f2c16843b70..7d481afeb59 100644
--- a/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
+++ b/apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
@@ -79,7 +79,7 @@ class ExpireTrash extends \OC\BackgroundJob\TimedJob {
$this->userManager->callForAllUsers(function(IUser $user) {
$uid = $user->getUID();
- if (!$this->setupFS($uid)) {
+ if ($user->getLastLogin() === 0 || !$this->setupFS($uid)) {
return;
}
$dirContent = Helper::getTrashFiles('/', $uid, 'mtime');