Skip to content

Commit

Permalink
REMOVED: wrong comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Bredehöft committed Jul 6, 2015
1 parent 7f668af commit 750d02f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions drf_tools/auth/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion drf_tools/auth/permissionservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 750d02f

Please sign in to comment.