def signer_impacts_resource()

in kinto-remote-settings/src/kinto_remote_settings/signer/listeners.py [0:0]


def signer_impacts_resource(signer, bid, cid):
    matches_destination = signer_resource_match(signer["destination"], bid, cid)
    if matches_destination:
        return True

    if "preview" in signer:
        matches_preview = signer_resource_match(signer["preview"], bid, cid)
        if matches_preview:
            return True

    return False