mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
fix session variables
This commit is contained in:
parent
60e8a57dce
commit
924137f09a
4 changed files with 14 additions and 15 deletions
|
|
@ -210,11 +210,13 @@ class UserController extends AbstractController
|
|||
[
|
||||
'session' =>
|
||||
[
|
||||
'user' => $user
|
||||
'user' => $user,
|
||||
'owner' => $user->getId() === $userTarget->getId(),
|
||||
'moderator' => $user->isModerator()
|
||||
],
|
||||
'user' => [
|
||||
'id' => $userTarget->getId(),
|
||||
'address' => $userTarget->getId() === $user->getId() ? $userTarget->getAddress() : false,
|
||||
'address' => $userTarget->getAddress(),
|
||||
'moderator' => $userTarget->isModerator(),
|
||||
'approved' => $userTarget->isApproved(),
|
||||
'status' => $userTarget->isStatus(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue