summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
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_versions
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_versions')
-rw-r--r--apps/files_versions/lib/BackgroundJob/ExpireVersions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/BackgroundJob/ExpireVersions.php b/apps/files_versions/lib/BackgroundJob/ExpireVersions.php
index a5d3efda77b..8e1f02cdfbf 100644
--- a/apps/files_versions/lib/BackgroundJob/ExpireVersions.php
+++ b/apps/files_versions/lib/BackgroundJob/ExpireVersions.php
@@ -69,7 +69,7 @@ class ExpireVersions 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;
}
Storage::expireOlderThanMaxForUser($uid);