From a22c42631097d704acbdebe5310d3bab0d7a2b4e Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 20:45:03 -0700 Subject: [PATCH] fix unblocking (type error) --- files/routes/subs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/subs.py b/files/routes/subs.py index c4a328c03..2fcee35e0 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -124,7 +124,7 @@ def block_sub(v, sub): @auth_required def unblock_sub(v, sub): sub = get_sub_by_name(sub).name - if sub.name == "chudrama" and not v.can_see_chudrama: abort(403) + if sub == "chudrama" and not v.can_see_chudrama: abort(403) block = g.db.query(SubBlock).filter_by(user_id=v.id, sub=sub).one_or_none() if block: