change and fiy

This commit is contained in:
2026-08-26 15:16:57 +02:00
parent acaa5879e1
commit 7e992ed038
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3651,7 +3651,7 @@ def tenant_status():
@app.route('/admin/test/drop_all_instances', methods=['POST'])
@login_required
def admin_drop_all_instances():
def admin_delete_all_instances():
# 1. Sicherheits-Check: Nur Admins dürfen das!
# Passe diesen Check an deine bestehende Rollenverwaltung an
if not session.get("is_admin") and session.get("role") != "admin":
+1 -1
View File
@@ -67,7 +67,7 @@
<p class="empty-state">Aktuell sind keine Tenant-Instanzen in der Datenbank vorhanden.</p>
{% endif %}
<form action="{{ url_for('admin_delete_all_instances') }}" method="POST">
<form action="{{ url_for('admin_drop_all_instances') }}" method="POST">
<button type="submit" class="btn-delete-all">ALLE INSTANZEN LÖSCHEN</button>
</form>
</section>