aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/threads.py3
1 files changed, 2 insertions, 1 deletions
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