Merge branch 'master' of github.com:humhub/humhub

This commit is contained in:
buddh4 2019-02-07 15:51:15 +01:00
commit 3913f927e2
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ HumHub Change Log
- Fix: "Back to home" button in registration broken with user approvals and guest mode activated
- Fix #1683 #553: Added link to show/edit users awaiting admin approval
- Fix: TextFilterInput uses `keypress` event instead of `keydown`
- Fix #3452: Soft deleted user remain in other users as friends
1.3.8 (December 10, 2018)

View File

@ -425,6 +425,8 @@ class User extends ContentContainerActiveRecord implements IdentityInterface, Se
Password::deleteAll(['user_id' => $this->id]);
GroupUser::deleteAll(['user_id' => $this->id]);
Session::deleteAll(['user_id' => $this->id]);
Friendship::deleteAll(['user_id' => $this->id]);
Friendship::deleteAll(['friend_user_id' => $this->id]);
$this->updateAttributes([
'email' => new Expression('NULL'),