diff --git a/copanier/config.py b/copanier/config.py index c813fff..8b60cad 100644 --- a/copanier/config.py +++ b/copanier/config.py @@ -12,6 +12,7 @@ SMTP_PASSWORD = "" SMTP_LOGIN = "" FROM_EMAIL = "" STAFF = [] +HIDE_GROUPS_LINK = False LOCALE = "fr_FR.UTF-8" #LOCALE = "en_US.UTF-8" SITE_NAME = "Copanier" diff --git a/copanier/templates/base.html b/copanier/templates/base.html index 76a9f02..ba7fbc2 100644 --- a/copanier/templates/base.html +++ b/copanier/templates/base.html @@ -43,9 +43,11 @@ Nouvelle distribution {% endif %} + {% if request.user and (request.user.is_staff or not config.HIDE_GROUPS_LINK) %}