From 09d95e3e63ddaf8e4137262c873678ea48efdfe9 Mon Sep 17 00:00:00 2001 From: TLSM Date: Tue, 30 Aug 2022 21:31:48 -0400 Subject: [PATCH] Revert unblockable users being unable to block. Related commits: 26b2f55e680a3dbee2044f80b30bf9e4c2e29f16 356d1ca8a0c9cfe6aaf5ed65ce5ec5703985fafa --- files/routes/settings.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/routes/settings.py b/files/routes/settings.py index e6cb771dd..20e3fa5d7 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -614,10 +614,6 @@ def settings_profilecss(v): @limiter.limit("1/second;20/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') @auth_required def settings_block_user(v): - - if v.unblockable: - return {"error": "Users with 'unblockable' award can't block others."}, 403 - user = get_user(request.values.get("username"), graceful=True) if not user: return {"error": "That user doesn't exist."}, 404