Fix bug that superuser can't leave group

This commit is contained in:
cuom1999 2023-02-01 19:52:43 -06:00
parent a03624b73e
commit c269e34873
2 changed files with 9 additions and 1 deletions

View file

@ -56,7 +56,7 @@
</div>
</li>
{% endif %}
{% if is_member and not can_edit %}
{% if is_member and not is_admin %}
<li>
<form method="post" action="{{ url('leave_organization', organization.id, organization.slug) }}">
{% csrf_token %}