From 7cfe6180a307f4d912a4b5bc3210c0eacd80859b Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 4 Jan 2018 15:10:01 +0100 Subject: [PATCH] N'affiche le menu clubs et assos que si besoin --- users/templates/users/aff_clubs.html | 6 +++++- users/templates/users/sidebar.html | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/users/templates/users/aff_clubs.html b/users/templates/users/aff_clubs.html index 0287e8a5..425e1f28 100644 --- a/users/templates/users/aff_clubs.html +++ b/users/templates/users/aff_clubs.html @@ -26,6 +26,8 @@ with this program; if not, write to the Free Software Foundation, Inc., {% include "pagination.html" with list=clubs_list %} {% endif %} +{% load acl %} + @@ -38,7 +40,8 @@ with this program; if not, write to the Free Software Foundation, Inc., {% for club in clubs_list %} - + {% can_view club %} + @@ -52,6 +55,7 @@ with this program; if not, write to the Free Software Foundation, Inc., + {% acl_end %} {% endfor %}
{{ club.surname }} {{ club.pseudo }} {{ club.room }}
diff --git a/users/templates/users/sidebar.html b/users/templates/users/sidebar.html index c5cf924a..27f6b2b1 100644 --- a/users/templates/users/sidebar.html +++ b/users/templates/users/sidebar.html @@ -37,10 +37,12 @@ with this program; if not, write to the Free Software Foundation, Inc., Créer un adhérent {% acl_end %} + {% can_view_all Club %} Clubs et assos + {% acl_end %} {% can_view_all Adherent %}