aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/templates/renderer.html
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/templates/renderer.html')
-rw-r--r--djangorestframework/templates/renderer.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/templates/renderer.html b/djangorestframework/templates/renderer.html
index 507b5c25..44e032aa 100644
--- a/djangorestframework/templates/renderer.html
+++ b/djangorestframework/templates/renderer.html
@@ -60,8 +60,8 @@
</form>
{% 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 %}
<form action="{{ request.get_full_path }}" method="post" {% if post_form.is_multipart %}enctype="multipart/form-data"{% endif %}>