Partly restored functionality

2022.09-rc
Michael 2021-03-18 15:56:50 +00:00
rodzic b55ae5717b
commit 437f96e573
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -58,6 +58,12 @@ class ExpireAndRemoveUsers
Photo::delete(['uid' => $user['uid']]);
// Delete the contacts of this user
$self = DBA::selectFirst('contact', ['nurl'], ['self' => true, 'uid' => $user['uid']]);
if (DBA::isResult($self)) {
DBA::delete('contact', ['nurl' => $self['nurl'], 'self' => false]);
}
// Delete all contacts of this user
DBA::delete('contact', ['uid' => $user['uid']]);
// These tables contain the permissionset which will also be deleted when a user is deleted.