Removed german string, reodered comment.
This commit is contained in:
parent
aff5babb20
commit
c39bbef47c
@ -7,7 +7,7 @@
|
||||
|
||||
<form class="LP-Form" method="POST">
|
||||
<fieldset class="LP-Form__Fieldset">
|
||||
<legend class="LP-Form__Legend">Place löschen</legend>
|
||||
<legend class="LP-Form__Legend">Delete place</legend>
|
||||
{% csrf_token %}
|
||||
<div class="LP-Form__Composition LP-Form__Composition--breakable">
|
||||
<p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"?</p>
|
||||
|
@ -107,9 +107,9 @@ class PlaceDeleteView(UserPassesTestMixin, DeleteView):
|
||||
if self.request.user.is_superuser:
|
||||
return True
|
||||
|
||||
# Check if currently logged in user was the submitter
|
||||
place_obj = self.get_object()
|
||||
|
||||
# Check if currently logged in user was the submitter
|
||||
if self.request.user == place_obj.submitted_by:
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user