From a65ec2f214c96cb537a101f96998d87a9e681991 Mon Sep 17 00:00:00 2001 From: Kabir Kukreti Date: Wed, 21 Mar 2012 15:13:37 +0530 Subject: Authentication bug in forms fixed.User dashboard fixed to include my dashboard for admin --- gstudio/templates/gstudioforms/gstudiocomplementform.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gstudio/templates/gstudioforms/gstudiocomplementform.html') diff --git a/gstudio/templates/gstudioforms/gstudiocomplementform.html b/gstudio/templates/gstudioforms/gstudiocomplementform.html index 4304d24..7066541 100644 --- a/gstudio/templates/gstudioforms/gstudiocomplementform.html +++ b/gstudio/templates/gstudioforms/gstudiocomplementform.html @@ -4,6 +4,7 @@ {% block content %}
{% csrf_token %} +{% if user.is_authenticated %}

Form to add Complements

{% for field in formset %} @@ -17,5 +18,11 @@
+ {% else %} +

Sorry either you are not logged in or dont have permission to view this content

+ {% trans 'Login' %}
+ {% trans 'Register' %}
+ {% endif %} + {% endblock %} -- cgit v1.1