Self hosted FLOSS fitness/workout, nutrition and weight tracker
Allow general manager to access the gym member list
Roland Geider591bf7acd52d
diff --git a/wger/core/templates/gym/list.html b/wger/core/templates/gym/list.htmlindex 43c5ab636..130e14096 100644--- a/wger/core/templates/gym/list.html+++ b/wger/core/templates/gym/list.html@@ -21,11 +21,7 @@{% trans 'Edit' %}</a></div>- {% if perms.core.manage_gym and user.userprofile.gym == gym %}- <a href="{% url 'core:gym:user-list' gym.pk %}">{{gym}}</a>- {% else %}- {{gym}}- {% endif %}+ <a href="{% url 'core:gym:user-list' gym.pk %}">{{gym}}</a></li>{% endfor %}</ul>diff --git a/wger/core/templates/gym/member_list.html b/wger/core/templates/gym/member_list.htmlindex 55318c979..7b0ccde9b 100644--- a/wger/core/templates/gym/member_list.html+++ b/wger/core/templates/gym/member_list.html@@ -7,6 +7,7 @@{% block content %}+{% if perms.core.manage_gym or perms.core.gym_trainer %}<table class="table"><thead><tr>@@ -37,7 +38,7 @@{% endfor %}</tbody></table>-+{% endif %}<h4>{% trans "Administrators and trainers" %}</h4>@@ -88,7 +89,7 @@{% block sidebar %}-{% if perms.core.manage_gym %}+{% if perms.core.change_gym %}<div class="btn-group pull-right"><button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span>