Impersonation middleware update (#527)
This commit is contained in:
parent
80663b5285
commit
12fc2c9f30
|
|
@ -80,7 +80,6 @@ class ImpersonationMiddleware
|
||||||
|
|
||||||
// Check that route is allowed
|
// Check that route is allowed
|
||||||
$routeName = $request->route()->getName();
|
$routeName = $request->route()->getName();
|
||||||
ray($routeName);
|
|
||||||
if (!in_array($routeName, self::ALLOWED_ROUTES)) {
|
if (!in_array($routeName, self::ALLOWED_ROUTES)) {
|
||||||
return response([
|
return response([
|
||||||
'message' => 'Unauthorized when impersonating',
|
'message' => 'Unauthorized when impersonating',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue