mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Let users see their own email/activation status
This commit is contained in:
parent
eaf27d3499
commit
ab764c9bf4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user