diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-01-24 18:15:09 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-01-24 18:15:12 +0000 |
| commit | 6e938ba74c089428723ae05f305c2d23a636ca3f (patch) | |
| tree | 0e699087d27cb0070eb08012e2e92d7c7b1584c9 /app/blueprints/threads | |
| parent | 53a63367dc7defc34616fc784cd19086d60ad54f (diff) | |
| download | cheatdb-6e938ba74c089428723ae05f305c2d23a636ca3f.tar.xz | |
Split up users blueprint
Diffstat (limited to 'app/blueprints/threads')
| -rw-r--r-- | app/blueprints/threads/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index 8d6c22d..a55d55e 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -142,7 +142,7 @@ def new(): if "pid" in request.args: package = Package.query.get(int(request.args.get("pid"))) if package is None: - flash("Unable to find that package!", "error") + flash("Unable to find that package!", "danger") # Don't allow making orphan threads on approved packages for now if package is None: @@ -156,12 +156,12 @@ def new(): # Check that user can make the thread if not package.checkPerm(current_user, Permission.CREATE_THREAD): - flash("Unable to create thread!", "error") + flash("Unable to create thread!", "danger") return redirect(url_for("homepage.home")) # Only allow creating one thread when not approved elif is_review_thread and package.review_thread is not None: - flash("A review thread already exists!", "error") + flash("A review thread already exists!", "danger") return redirect(url_for("threads.view", id=package.review_thread.id)) elif not current_user.canOpenThreadRL(): |
