From dfc925d5c2fe45d031d3e8b5cf6db6756cc352c3 Mon Sep 17 00:00:00 2001 From: Mikkel <4072916+Mikk3@users.noreply.github.com> Date: Wed, 1 Jun 2022 11:18:54 +0200 Subject: [PATCH] Fix for #1 --- aula/Threads/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aula/Threads/routes.py b/aula/Threads/routes.py index c810558..ce87591 100644 --- a/aula/Threads/routes.py +++ b/aula/Threads/routes.py @@ -17,7 +17,7 @@ def show(thread_id): thread = get_thread(thread_id) if thread is None: return f"Der findes ikke en tråd med id {thread_id}." - elif not current_user.in_thread(thread_id): + elif not current_user.is_member_of_group(thread.group_id): return f"Du har ikke adgang til tråden med id {thread_id}." else: form = SendMessageForm()