This commit is somehow result of merge with user_management branch.

This commit is contained in:
Michal Kváček
2016-01-21 11:17:17 +01:00
parent da13c15604
commit 012e150519
11 changed files with 216 additions and 4 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 {