From 4b28a5a91bf390c225c392b96849c1d62bfb524a Mon Sep 17 00:00:00 2001 From: Esther Kleinhenz Date: Wed, 15 Aug 2018 11:33:53 +0200 Subject: [PATCH] posts editable for only for author --- application/templates/post_detail.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/templates/post_detail.html b/application/templates/post_detail.html index a01fbdf..4b8cca5 100644 --- a/application/templates/post_detail.html +++ b/application/templates/post_detail.html @@ -7,12 +7,14 @@ {% else %} Publish {% endif %} + {% if user.is_staff and user == post.author %} Edit Remove + {% endif %}

{{ post.title }}

{{ post.text|linebreaksbr }}