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_trashbin/lib | |
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_trashbin/lib')
-rw-r--r-- | apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php | 2 |
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'); |