Self hosted FLOSS fitness/workout, nutrition and weight tracker
Correctly hide header if user has not enough rights
Roland Geider204800a4ff7d
diff --git a/wger/gym/templates/gym/member_list.html b/wger/gym/templates/gym/member_list.htmlindex eea9f0f29..6b0a6aad6 100644--- a/wger/gym/templates/gym/member_list.html+++ b/wger/gym/templates/gym/member_list.html@@ -205,7 +205,9 @@{# #}{# Contract configuration #}{# #}-<h4>{% trans "Contracts" %}</h4>+{% if perms.gym.change_contracttype or perms.gym.change_contractoption %}+ <h4>{% trans "Contracts" %}</h4>+{% endif %}{% if perms.gym.change_contracttype %}<div class="btn-group pull-right"><button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">