From fce5d235e6b5f72a699a15d971f6b1d7f7c497ae Mon Sep 17 00:00:00 2001 From: Stephan Mitt Date: Mon, 14 Sep 2015 10:56:32 +0200 Subject: [PATCH] added kye for can_read_url method --- drf_tools/auth/permissions.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drf_tools/auth/permissions.py b/drf_tools/auth/permissions.py index e8545e9..f583e10 100644 --- a/drf_tools/auth/permissions.py +++ b/drf_tools/auth/permissions.py @@ -80,11 +80,11 @@ def __check_links(self, request): if not type(urls) is list: urls = [urls] for url in urls: - if not self._can_read_url(request, url, resolver): + if not self._can_read_url(request, url, resolver, key): return False return True - def _can_read_url(self, request, url, resolver): + def _can_read_url(self, request, url, resolver, key): if url is None: return True sub_request = self.__make_sub_request(request, url, resolver) diff --git a/setup.py b/setup.py index 08d7c85..f97a97d 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='drf-tools', - version="0.9.17", + version="0.9.18", url='https://github.com/seebass/drf-tools', license='MIT', description='Multiple extensions and test utilities for Django REST Framework 3',