From 0b18b58c170aae0c2a93a608997e557fdcefe826 Mon Sep 17 00:00:00 2001 From: markotibold Date: Sun, 26 Jun 2011 01:32:27 +0200 Subject: [PATCH] On 403's no forms will be displayed anymore --- djangorestframework/templates/renderer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html index 507b5c251..44e032aa7 100644 --- a/djangorestframework/templates/renderer.html +++ b/djangorestframework/templates/renderer.html @@ -60,8 +60,8 @@ {% endif %} - {# Only display the POST/PUT/DELETE forms if method tunneling via POST forms is enabled. #} - {% if METHOD_PARAM %} + {# Only display the POST/PUT/DELETE forms if method tunneling via POST forms is enabled and the user has permissions on this view. #} + {% if METHOD_PARAM and response.status != 403 %} {% if 'POST' in view.allowed_methods %}