fix bad ref

This commit is contained in:
lza_menace 2022-09-04 10:15:08 -07:00
parent 289995cd49
commit 0d02bf63f7

View file

@ -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}'