diff --git a/django_lostplaces/lostplaces/templates/place/place_detail.html b/django_lostplaces/lostplaces/templates/place/place_detail.html
index b471dd5..fdf656a 100644
--- a/django_lostplaces/lostplaces/templates/place/place_detail.html
+++ b/django_lostplaces/lostplaces/templates/place/place_detail.html
@@ -94,9 +94,23 @@
{% for place_image in place.placeimages.all %}
-
-
+
+
+
+ {% if user.explorer == place_image.submitted_by or user.explorer == place.submitted_by %}
+
+
+
+
+
+ {% endif %}
{% endfor %}
+ -
+
+
+
+
diff --git a/django_lostplaces/lostplaces/urls.py b/django_lostplaces/lostplaces/urls.py
index 0a00914..9c686ef 100644
--- a/django_lostplaces/lostplaces/urls.py
+++ b/django_lostplaces/lostplaces/urls.py
@@ -14,6 +14,7 @@ from lostplaces.views import (
PhotoAlbumCreateView,
PhotoAlbumDeleteView,
PlaceImageCreateView,
+ PlaceImageDeleteView,
FlatView
)
@@ -27,6 +28,7 @@ urlpatterns = [
path('place/delete//', PlaceDeleteView.as_view(), name='place_delete'),
path('place/', PlaceListView.as_view(), name='place_list'),
path('place_image/create/', PlaceImageCreateView.as_view(), name='place_image_create'),
+ path('place_image/delete/', PlaceImageDeleteView.as_view(), name='place_image_delete'),
path('flat//', FlatView, name='flatpage'),
# POST-only URLs for tag submission