Skip to content

Commit

Permalink
修复 别人的用户主页查看到的补签卡数量实际是自己的
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Oct 6, 2024
1 parent 90253d7 commit e2a5219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Attributes/UserAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __invoke(BasicUserSerializer $serializer, User $user): array
$attributes = [];
$actor = $serializer->getActor();

$attributes['checkinCard'] = $actor->checkin_card;
$attributes['checkinCard'] = $user->checkin_card;
$attributes['canQueryOthersHistory'] = $serializer->getActor()->can('queryOthersHistory', $user);

return $attributes;
Expand Down

0 comments on commit e2a5219

Please sign in to comment.