change and fiy
This commit is contained in:
+1
-1
@@ -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":
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user