Let users see their own email/activation status

This commit is contained in:
Toby Zerner 2015-08-05 16:07:22 +09:30
parent eaf27d3499
commit ab764c9bf4

View File

@ -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