permission für videos

This commit is contained in:
Bkolb 2026-03-31 22:01:57 +02:00
parent 0d023a503b
commit 2ab719774b
4 changed files with 8 additions and 2 deletions

View File

@ -408,8 +408,14 @@ def health():
@app.route("/images/<path:filename>")
def serve_image(filename):
return send_from_directory("/app/images", filename)
def images(filename):
# 🔒 Schutz für Videos
if filename.startswith("videos/"):
if not session.get("user_id"):
return redirect(url_for("login", next=request.path))
return send_from_directory("images", filename)
@app.route("/styles/<path:filename>")

Binary file not shown.

Binary file not shown.

Binary file not shown.