From 3b15b75799bff245e1fba06530cc8131c5417bcc Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 1 Nov 2023 02:03:19 +0300 Subject: [PATCH] giving an error is better to prevent confusion --- files/routes/asset_submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 71dca0592..c3af4d4bb 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -585,7 +585,7 @@ def update_emoji(v): @admin_level_required(PERMS['UPDATE_ASSETS']) def update_hats(v): if SITE == 'watchpeopledie.tv': - return redirect('https://rdrama.net/admin/update/hats') + abort(403, "You can only update hats on rdrama.net (the changes will propagate to WPD automatically)") return render_template("admin/update_assets.html", v=v, type="Hat")