From e29d4659e6aff3159d1aa103f25f26c7417d5cdc Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Tue, 9 Apr 2024 19:09:58 +1200 Subject: [PATCH] chat options bugfix --- app/chat/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chat/routes.py b/app/chat/routes.py index f5185b7a..f2408d48 100644 --- a/app/chat/routes.py +++ b/app/chat/routes.py @@ -105,7 +105,7 @@ def empty(): @login_required def chat_options(conversation_id): conversation = Conversation.query.get_or_404(conversation_id) - if current_user.is_admin() or current_user.is_member(current_user): + if current_user.is_admin() or conversation.is_member(current_user): return render_template('chat/chat_options.html', conversation=conversation, moderating_communities=moderating_communities(current_user.get_id()), joined_communities=joined_communities(current_user.get_id()),