def has_permission(self, request, view):
        """
        Check if the subscriber has an active subscription.

        Returns false if:
            * a subscriber isn't passed through the request

        See ``utils.subscriber_has_active_subscription`` for more rules.

        """

        try:
            subscriber_has_active_subscription(subscriber_request_callback(request))
        except __HOLE__:
            return False
dataset/ETHPy150Open pydanny/dj-stripe/djstripe/contrib/rest_framework/permissions.py/DJStripeSubscriptionPermission.has_permission