Commit 9f52bed8 authored by erdnaxe's avatar erdnaxe 🎇

Remove custom context processor

parent d0086c84
......@@ -23,9 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
{% endcomment %}
{% block sidebar %}
{% if is_perm %}
<a class="list-group-item list-group-item-info" href="{% url "logs:index" %}">
<i class="glyphicon glyphicon-stats"></i>
Évènements
......@@ -34,6 +32,4 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<i class="glyphicon glyphicon-stats"></i>
Actions sur la bdd
</a>
{% endif %}
{% endblock %}
def context_user(request):
is_perm = request.user.has_perms(['perm'])
return {
'is_perm': is_perm,
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment