Skip to content

Commit

Permalink
Merge pull request #36942 from nextcloud/unmark-login-date
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored May 30, 2024
2 parents 6438d95 + 61a6013 commit dee0eb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/user_ldap/lib/User/DeletedUsersIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ private function fetchDeletedUsers(): array {

$userObjects = [];
foreach ($deletedUsers as $user) {
$userObjects[] = new OfflineUser($user, $this->config, $this->mapping, $this->shareManager);
$userObject = new OfflineUser($user, $this->config, $this->mapping, $this->shareManager);
if ($userObject->getLastLogin() > $userObject->getDetectedOn()) {
$userObject->unmark();
} else {
$userObjects[] = $userObject;
}
}
$this->deletedUsers = $userObjects;

Expand Down

0 comments on commit dee0eb2

Please sign in to comment.