mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Let users see their own email/activation status
This commit is contained in:
@@ -26,7 +26,7 @@ class UserSerializer extends UserBasicSerializer
|
||||
];
|
||||
}
|
||||
|
||||
if ($canEdit) {
|
||||
if ($canEdit || $this->actor->id === $user->id) {
|
||||
$attributes += [
|
||||
'isActivated' => $user->is_activated,
|
||||
'email' => $user->email
|
||||
|
Reference in New Issue
Block a user