Commit 23cc411c authored by Joseph Silber's avatar Joseph Silber

Use App::abort instead of Response::make

parent cf36bb47
......@@ -37,10 +37,7 @@ Route::filter('auth', function()
{
if (Auth::guest())
{
if (Request::ajax())
{
return Response::make('', 401, array('HTTP/1.1 401 Unauthorized'));
}
if (Request::ajax()) App::abort(401);
return Redirect::guest('login');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment