Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip version and trash expiry for users that never logged in
  • Loading branch information
butonic authored and schiessle committed Aug 10, 2016
commit 73de15fb08e300fd419dfc914ec94aa6c90c971f
2 changes: 1 addition & 1 deletion apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function run($argument) {

$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');
Expand Down
2 changes: 1 addition & 1 deletion apps/files_versions/lib/BackgroundJob/ExpireVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function run($argument) {

$this->userManager->callForAllUsers(function(IUser $user) {
$uid = $user->getUID();
if (!$this->setupFS($uid)) {
if ($user->getLastLogin() === 0 || !$this->setupFS($uid)) {
return;
}
Storage::expireOlderThanMaxForUser($uid);
Expand Down