Impersonation middleware update (#527)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user