Skip to content
Snippets Groups Projects
Verified Commit 53c28832 authored by Lukas Weichelt's avatar Lukas Weichelt Committed by Jonathan Weth
Browse files

Fix group ownership

(cherry picked from commit 7f82d2a8)
parent 4a4b52d1
No related branches found
No related tags found
No related merge requests found
......@@ -254,22 +254,20 @@
</div>
</div>
</div>
{% endif %}
{% has_perm 'core.view_person_groups_rule' user person as can_view_groups %}
{% if can_view_groups and groups %}
<div class="col s12 m6 l4">
<h2>{% blocktrans %}Group ownership{% endblocktrans %}</h2>
<div class="card-panel">
<div class="collection">
{% for group in person.owner_of_recursive %}
<a href="{{ group.get_absolute_url }}" class="collection-item">
{{ group.name }} ({{ group.school_term }})
</a>
{% endfor %}
{% if person.owner_of_recursive.count %}
<div class="col s12 m6 l4">
<h2>{% blocktrans %}Group ownership{% endblocktrans %}</h2>
<div class="card-panel">
<div class="collection">
{% for group in person.owner_of_recursive.all %}
<a href="{{ group.get_absolute_url }}" class="collection-item">
{{ group.name }} ({{ group.school_term }}) {{ person.owner_of_recursive.count}}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment