From e8cc685f896f65bb3b35bf360f78151eb53ddc8c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 11 Jun 2018 23:22:48 +0100 Subject: [PATCH] Prevent new threads being created on approved packages --- app/views/threads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/threads.py b/app/views/threads.py index e4973a5..c975e5f 100644 --- a/app/views/threads.py +++ b/app/views/threads.py @@ -75,7 +75,8 @@ def new_thread_page(): if package is None: flash("Unable to find that package!", "error") - if package is None: + # Don't allow making threads on approved packages for now + if package is None or package.approved: abort(403) def_is_private = request.args.get("private") or False