def _has_business()

in fbauthenticator/business_authenticator.py [0:0]


    def _has_business(self, data):
        """
        Given the data of one page of business users, check if the user is in the business.
        Return true if the user is in the business, false otherwise.
        """
        return any(
            "business" in entry
            and "id" in entry["business"]
            and entry["business"]["id"] == self.BUSINESS_ID
            for entry in data
        )