From 852786023edc7ac9c5ffa9264fd256d8253921fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Tue, 2 Jul 2024 23:36:05 +0200
Subject: [PATCH] Fix moodle lecture authentication

---
 src/api/authentication.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/authentication.py b/src/api/authentication.py
index 364be95..1a35850 100644
--- a/src/api/authentication.py
+++ b/src/api/authentication.py
@@ -321,7 +321,7 @@ def is_authenticated(auth_list: [], for_lecture: bool):
                 return True
             
             for moodle_id in perm.moodle_course_ids:
-                if moodle_id in session.get("moodle_courses", []):
+                if str(moodle_id) in session.get("moodle_courses", []):
                     return True
             
             if "auth_data" in session:
-- 
GitLab