From dafe7eee3489e3a7c17b6560fc2aa09648773ecd Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sun, 11 Oct 2020 09:47:34 +0200 Subject: [PATCH] Deleted mishap. --- django_lostplaces/lostplaces/templatetags/lostplaces.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/django_lostplaces/lostplaces/templatetags/lostplaces.py b/django_lostplaces/lostplaces/templatetags/lostplaces.py index a963db7..c2a09d9 100644 --- a/django_lostplaces/lostplaces/templatetags/lostplaces.py +++ b/django_lostplaces/lostplaces/templatetags/lostplaces.py @@ -24,12 +24,3 @@ def proper_paginate(paginator, current_page, neighbors=2): page_list = [f for f in range(start_index, end_index+1)] return page_list[:(2*neighbors + 1)] return paginator.page_range - -@register.simple_tag -def can_modify_place_asset(place_asset): - if request.user.is_superuser: - return True - if request.user == ( place_asset.place.submitted_by or place_asset.submitted_by): - return True - else: - return False