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: