mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
access to groups management can be restricted to admin through config
This commit is contained in:
parent
525d2f0924
commit
1c610e494f
2 changed files with 6 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -43,9 +43,11 @@
|
|||
<a href="{{ url_for('new_delivery') }}"><i class="icon-hotairballoon"></i> Nouvelle distribution</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if request.user and (request.user.is_staff or not config.HIDE_GROUPS_LINK) %}
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="{{ url_for('groups') }}"><i class="icon-globe"></i> Gérer les groupes</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
<li class="pure-menu-item">
|
||||
<a href="{{ url_for('logout') }}"><i class="icon-lock"></i> Se déconnecter</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue