mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-24 19:02:40 +01:00
Prevent new threads being created on approved packages
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user