Impersonation middleware update (#527)

This commit is contained in:
Favour Olayinka 2024-08-15 14:21:08 +01:00 committed by GitHub
parent 80663b5285
commit 12fc2c9f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -80,7 +80,6 @@ class ImpersonationMiddleware
// Check that route is allowed
$routeName = $request->route()->getName();
ray($routeName);
if (!in_array($routeName, self::ALLOWED_ROUTES)) {
return response([
'message' => 'Unauthorized when impersonating',