mirror of
https://github.com/flarum/framework.git
synced 2025-01-07 19:13:37 +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 += [
|
$attributes += [
|
||||||
'isActivated' => $user->is_activated,
|
'isActivated' => $user->is_activated,
|
||||||
'email' => $user->email
|
'email' => $user->email
|
||||||
|
|
Loading…
Reference in New Issue
Block a user