Self hosted FLOSS fitness/workout, nutrition and weight tracker
Check for correct permissions on template
Roland Geider9b581b502b3a
diff --git a/wger/gym/templates/gym/list.html b/wger/gym/templates/gym/list.htmlindex a556ca119..db0dc998c 100644--- a/wger/gym/templates/gym/list.html+++ b/wger/gym/templates/gym/list.html@@ -45,7 +45,7 @@</a></p>{% endif %}-{% if perms.core.change_gymconfig %}+{% if perms.gym.change_gymconfig %}<p><a href="{% url 'config:gymconfig-edit' %}"{% auto_link_css flavour %}>diff --git a/wger/gym/templates/gym/member_list.html b/wger/gym/templates/gym/member_list.htmlindex 2029a8280..8816aabfa 100644--- a/wger/gym/templates/gym/member_list.html+++ b/wger/gym/templates/gym/member_list.html@@ -110,7 +110,7 @@ $(document).ready( function () {{# #}{# Gym details #}{# #}-{% if perms.core.change_gym %}+{% if perms.gym.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>@@ -164,7 +164,7 @@ $(document).ready( function () {{# #}{# Gym configuration #}{# #}-{% if perms.core.change_gym %}+{% if perms.gym.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>