Commit d8b1636c authored by Robert's avatar Robert

Fix permission names

parent d3888377
Pipeline #1271 failed with stage
in 1 minute and 41 seconds
......@@ -16,7 +16,7 @@
<i class="fa fa-5x fa-image"></i><br />
<p>Diese Gruppe war bisher nicht motiviert eine Introgalerie anzulegen.</p>
{% load rules %}
{% has_perm 'memberships.join_group' user group as can_join %}
{% has_perm 'memberships.join' user group as can_join %}
{% if can_join %}
<p>Wenn Du in der Gruppe aktiv bist, kannst Du ihr
<a href="{% url 'join' group.pk %}">beitreten</a> und ein Bild
......
......@@ -43,7 +43,7 @@
<h2>Mitgliedschaft</h2>
{% load memberships rules %}
{% has_perm 'memberships.try_to_join' user group as can_join %}
{% has_perm 'memberships.delete_membership' user user.gestalt|membership:group as can_resign %}
{% has_perm 'memberships.delete' user group as can_resign %}
{% if can_resign %}
<a href="{% url 'resign' group.pk %}" class="btn btn-default btn-addon-ok">
<i class="sg sg-group"></i> Beigetreten
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment