def _find_review_request(request, review_request_id, local_site):
 review_request = _find_review_request_object(review_request_id, local_site)
 if review_request.is_accessible_by(request.user):
  return (review_request, None)
 else:
  return (None, _render_permission_denied(request))

def _find_review_request ( request , review_request_id , local_site ) : review_request = _find_review_request_object ( review_request_id , local_site ) if review_request . is_accessible_by ( request . user ) : return ( review_request , None ) else : return ( None , _render_permission_denied ( request ) )
finds a review request matching an id .