From 22da1cd268e6c584eb2b9dad14558181dc46945f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Sat, 25 Nov 2017 13:26:09 +0100 Subject: [PATCH] Only responsible people should see the edit task button. --- src/teams/templates/team_detail.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/teams/templates/team_detail.html b/src/teams/templates/team_detail.html index 1273043d..44972367 100644 --- a/src/teams/templates/team_detail.html +++ b/src/teams/templates/team_detail.html @@ -81,7 +81,9 @@ Team: {{ team.name }} | {{ block.super }} {{ task.description }} Details - Edit Task + {% if request.user in team.responsible.all %} + Edit Task + {% endif %} {% endfor %}