def combine_request_approved(access_requests):
    """Combine pending and approved requests for the same user.

       Emergency Access Service returns both requests and approved access.
       If a request is already approved we don't want to show the request, so
       we merge the requests by user."""
    current_access = {}
    for request in access_requests:
        req = current_access.get(request['user'], request)
        if not req.get('approved', False):
            req['approved'] = request.get('approved', False)
            req['expiry_time'] = request['expiry_time']
        if req.get('reason', '') == '':
            req['reason'] = request['reason']
        current_access[request['user']] = req
    return current_access
