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 %}