"Refactor database structures and templates for improved performance and maintainability"

This commit is contained in:
2025-05-29 14:46:31 +02:00
parent 87b54d1cea
commit e1457ab02e
8 changed files with 315 additions and 359 deletions

View File

@@ -3097,6 +3097,16 @@ def admin_printer_settings_page(printer_id):
flash("Fehler beim Laden der Drucker-Daten.", "error")
return redirect(url_for("admin_page"))
@app.route("/admin/guest-requests")
@login_required
def admin_guest_requests():
"""Admin-Oberfläche für die Verwaltung von Gastanfragen."""
if not current_user.is_admin:
flash("Sie haben keine Berechtigung für den Admin-Bereich.", "error")
return redirect(url_for("index"))
return render_template("admin_guest_requests.html")
# ===== ADMIN API-ROUTEN FÜR BENUTZER UND DRUCKER =====
@app.route("/api/admin/users", methods=["POST"])