diff --git a/files/routes/hats.py b/files/routes/hats.py index 1d349081d..160bc03be 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -81,6 +81,8 @@ def equip_hat(v, hat_id): @app.post("/unequip_hat") @auth_required def unequip_hat(v): + if not FEATURES['HATS']: abort(404) + v.equipped_hat_id = None g.db.add(v)