mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Prevent new threads being created on approved packages
This commit is contained in:
parent
86dd137f75
commit
e8cc685f89
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user