From 0d02bf63f7f89e860d47251fcbee32cf7435b8b5 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 4 Sep 2022 10:15:08 -0700 Subject: [PATCH] fix bad ref --- suchwow/routes/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suchwow/routes/post.py b/suchwow/routes/post.py index c44e180..5ec93eb 100644 --- a/suchwow/routes/post.py +++ b/suchwow/routes/post.py @@ -25,7 +25,7 @@ def read(id): post = Post.select().where(Post.id == id).first() if post: if not post.approved: - if not is_moderator(get_session_user()): + if not User.select().where(User.username == get_session_user()).first().moderator: flash("That post has not been approved.", "is-warning") return redirect("/") qr_uri = f'wownero:{post.address}?tx_description=suchwow%20post%20{post.id}'