'Check if the OAuth client associated with auth token in current request has permission to access
the information for provider'

def has_permission(self, request, view):

    if ((not request.auth) or (not self.provider_id)):
        return False
    try:
        ProviderApiPermissions.objects.get(client__pk=request.auth.client_id, provider_id=self.provider_id)
    except ProviderApiPermissions.DoesNotExist:
        return False
    return True
