]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/blueprints/packages/packages.py
Allow all users to delete their packages
[cheatdb.git] / app / blueprints / packages / packages.py
index c7a5c99beb091d149cb20fef9f41299472e2cb3b..c79e931ae13f1020f6c9105a8fe1430e8f016c1f 100644 (file)
@@ -438,7 +438,7 @@ def remove(package):
                        flash("You don't have permission to do that.", "danger")
                        return redirect(package.getDetailsURL())
 
-               package.state = PackageState.READY_FOR_REVIEW
+               package.state = PackageState.WIP
 
                msg = "Unapproved {}".format(package.title)
                addNotification(package.maintainers, current_user, msg, package.getDetailsURL(), package)