Commits

Mario César Señoranis Ayala committed 41e076e

silly security

Comments (0)

Files changed (1)

templates/designer/project_detail.html

 <div class='thumbnail'>
 <div class='caption'>
 <h5>{{diagram.name}}</h5>
+
+{% if user.is_authenticated %}
 <a class='btn' href='{{diagram.get_absolute_url}}'><i class='icon-pencil'></i>Diseñador</a>
-{% if user == project.owner %}
+{% endif %}
+
+{% if user.is_authenticated and user == project.owner %}
 <a class='btn btn-success' href='{{diagram.get_absolute_url}}'><i class='icon-cog icon-white'></i>Editar</a>
 {% endif %}
 </div>