From 4e5766d4543af7fb75b231c37ced9bf7b537e2db Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 18 Feb 2024 22:06:36 +0200 Subject: [PATCH] fix route --- files/routes/holes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/holes.py b/files/routes/holes.py index 1703bed033..c6ff2e3249 100644 --- a/files/routes/holes.py +++ b/files/routes/holes.py @@ -1071,7 +1071,7 @@ def change_hole(pid, v): hole_to = hole_to.name if hole_to else None if not post.hole_changable(v): - return False + abort(403, "You can't change the hole of this post!") if hole_to == None: if HOLE_REQUIRED: