Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Don't allow editing permissions of non-gym members

Roland Geiderf928cd438da2
diff --git a/wger/core/templates/user/overview.html b/wger/core/templates/user/overview.html
index 6876befcc..7ae6daeb4 100644
--- a/wger/core/templates/user/overview.html
+++ b/wger/core/templates/user/overview.html
@@ -224,10 +224,12 @@
<a data-url="{% url 'gym:gym:reset-user-password' current_user.pk %}" data-toggle="modal" data-target="#confirmation-modal">{% trans "Reset user password" %}</a>
</li>
{% if perms.gym.manage_gym or perms.gym.manage_gyms %}
+ {% if current_user.userprofile.gym %}
<li>
<a href="{% url 'gym:gym:edit-user-permission' current_user.pk %}" class="wger-modal-dialog">{% trans "Roles"%}</a>
</li>
{% endif %}
+ {% endif %}
<li>
<a href="{% url 'core:user:delete' current_user.pk %}" class="wger-modal-dialog">{% trans "Delete"%}</a>
</li>
diff --git a/wger/software/templates/changelog.html b/wger/software/templates/changelog.html
index 1a90cd893..7aedf83a1 100644
--- a/wger/software/templates/changelog.html
+++ b/wger/software/templates/changelog.html
@@ -21,6 +21,7 @@
</li>
<li>
Other improvements and bugfixes
+ <a href="https://github.com/rolandgeider/wger/issues/279">#279</a>
<a href="https://github.com/rolandgeider/wger/issues/275">#275</a>
<a href="https://github.com/rolandgeider/wger/issues/270">#270</a>
<a href="https://github.com/rolandgeider/wger/issues/258">#258</a>