Fix check when showing remove myself from maintainers

This commit is contained in:
rubenwardy 2020-07-08 23:44:13 +01:00
parent 8dcbcd8b62
commit 3dd5e7445e

@ -273,7 +273,7 @@
</a> </a>
{% endfor %} {% endfor %}
{% if current_user in package.maintainers and not package.checkPerm(current_user, "EDIT_MAINTAINERS") %} {% if current_user in package.maintainers and current_user != package.author %}
<form class="mt-2" method="post" action="{{ package.getRemoveSelfMaintainerURL() }}"> <form class="mt-2" method="post" action="{{ package.getRemoveSelfMaintainerURL() }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input class="btn btn-sm btn-link p-0" type="submit" value="{{ _("Remove myself") }}" /> <input class="btn btn-sm btn-link p-0" type="submit" value="{{ _("Remove myself") }}" />