Use App::abort instead of Response::make

This commit is contained in:
Joseph Silber 2014-02-06 21:32:14 -05:00
parent cf36bb47c2
commit 23cc411ce1
1 changed files with 1 additions and 4 deletions

View File

@ -37,10 +37,7 @@
{ {
if (Auth::guest()) if (Auth::guest())
{ {
if (Request::ajax()) if (Request::ajax()) App::abort(401);
{
return Response::make('', 401, array('HTTP/1.1 401 Unauthorized'));
}
return Redirect::guest('login'); return Redirect::guest('login');
} }