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
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@
</a>
{% 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() }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input class="btn btn-sm btn-link p-0" type="submit" value="{{ _("Remove myself") }}" />