From 750d02f9748adf953053f800d41838207d80af02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Bredeho=CC=88ft?= Date: Mon, 6 Jul 2015 09:53:27 +0200 Subject: [PATCH] REMOVED: wrong comments --- drf_tools/auth/permissions.py | 5 +---- drf_tools/auth/permissionservice.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drf_tools/auth/permissions.py b/drf_tools/auth/permissions.py index 7c6cfde..45babbd 100644 --- a/drf_tools/auth/permissions.py +++ b/drf_tools/auth/permissions.py @@ -35,10 +35,7 @@ def check_base_permissions(request, user): class BusinessPermission(BasePermission): """ - Permission that handles Marketer or AgofMarketer dependend permissions. - - To make this permission class work, every model that belongs to a certain marketer needs to have the property 'marketer' - or 'agofMarketer' and the associated view needs to have a filter with the same name that filters its model accordingly + Permission that handles business dependend permissions. """ def has_permission(self, request, view): diff --git a/drf_tools/auth/permissionservice.py b/drf_tools/auth/permissionservice.py index a63963c..86fc339 100644 --- a/drf_tools/auth/permissionservice.py +++ b/drf_tools/auth/permissionservice.py @@ -63,7 +63,7 @@ def _get_permission_model_ids_from_request_data(self, request, model, view): other_parent = None other_parent_id = None - # there has to be a parent that holds the marketer in the parent lookups + # there has to be a parent that holds the permission model in the parent lookups for kwarg_key in view.kwargs: if not kwarg_key.startswith(drf_nested_routing.PARENT_LOOKUP_NAME_PREFIX): continue