FIX: fixed authetication verification

This commit is contained in:
Michal Kváček
2016-01-21 02:53:36 +01:00
parent 022c335074
commit c801c30dc9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class Authenticate
*/
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->guest()) {
if (Auth::check()) {
if ($request->ajax()) {
return response('Unauthorized.', 401);
} else {