We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66d1b43 commit ae53c44Copy full SHA for ae53c44
src/Controller/TokenController.php
@@ -129,12 +129,11 @@ public function showTokensDeprecated(RequestContextService $ctx): JsonResponse
129
#[Route("", name: 'tokens_show', methods: ['GET'])]
130
public function showTokens(RequestContextService $ctx): JsonResponse
131
{
132
- // Check user authentication and roles
133
-// $userAuth = ;
134
- $userAuth = [
135
- 'isAuthenticated' => $ctx->isAuthenticated(),
136
- 'isAdmin' => $ctx->isAdmin()
137
- ];
+ // Check user authentication and roles
+ $userAuth = [
+ 'isAuthenticated' => $ctx->isAuthenticated(),
+ 'isAdmin' => $ctx->isAdmin()
+ ];
138
139
// Get current user to scope the cache key by roles
140
$user = $ctx->getCurrentUser();
0 commit comments