Skip version and trash expiry for users that never logged in
This commit is contained in:
parent
0475315dd4
commit
73de15fb08
|
@ -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 New Issue