guest()) { return Response::json(array('error' => 'you are not allowed to perform this operation'), 403); } if(!Auth::user()->isOAuth2ServerAdmin()) { return Response::json(array('error' => 'you are not allowed to perform this operation'), 403); } return $next($request); } }