Skip to content

Commit ae53c44

Browse files
committed
Clean code
1 parent 66d1b43 commit ae53c44

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Controller/TokenController.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,11 @@ public function showTokensDeprecated(RequestContextService $ctx): JsonResponse
129129
#[Route("", name: 'tokens_show', methods: ['GET'])]
130130
public function showTokens(RequestContextService $ctx): JsonResponse
131131
{
132-
// Check user authentication and roles
133-
// $userAuth = ;
134-
$userAuth = [
135-
'isAuthenticated' => $ctx->isAuthenticated(),
136-
'isAdmin' => $ctx->isAdmin()
137-
];
132+
// Check user authentication and roles
133+
$userAuth = [
134+
'isAuthenticated' => $ctx->isAuthenticated(),
135+
'isAdmin' => $ctx->isAdmin()
136+
];
138137

139138
// Get current user to scope the cache key by roles
140139
$user = $ctx->getCurrentUser();

0 commit comments

Comments
 (0)