core: support ban user from domain

This commit is contained in:
undefined committed 2025-03-23 05:04:38 +08:00
1 parent ff1605797b
commit 7ed859be2d
8 files changed
+15 -6

No files matched your search

@@ -44,11 +44,13 @@
{% if canManage[ddoc['_id']] %}
· <a class="typo-a" href="{{ url('domain_dashboard', domainId=ddoc['_id']) }}">{{ _('Manage') }}</a>
{% endif %}
{% if ddoc['_id'] != 'system' and ddoc['owner'] != handler.user._id %}
· <form class="form--inline" method="post">
<input type="hidden" name="operation" value="leave">
<input type="hidden" name="id" value="{{ ddoc['_id'] }}">
<button class="typo-a" type="submit">{{ _('Leave') }}</button>
</form>
{% endif %}
</td>
</tr>
{%- endfor -%}