Skip version and trash expiry for users that never logged in
This commit is contained in:
parent
d6bee61131
commit
d59cb04427
2 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue