mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix check when showing remove myself from maintainers
This commit is contained in:
parent
8dcbcd8b62
commit
3dd5e7445e
@ -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") }}" />
|
||||
|
Loading…
Reference in New Issue
Block a user