diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2016-08-09 12:28:53 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-08-10 10:51:51 +0200 |
commit | d59cb04427128bd04311a24595599acb0da5589f (patch) | |
tree | e1b2e8fa8dbe51fd1f48b516a2a4214b7c617da3 /apps/files_versions | |
parent | d6bee61131d9702483830d39819e6204588eb800 (diff) | |
download | nextcloud-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.php | 2 |
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); |