Add active check

This commit is contained in:
2026-08-05 00:27:08 +02:00
parent 0497d1bbcf
commit bbb41e41ab
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -103,6 +103,8 @@ def checkAccess(key: str, db: Session):
card = db.exec(select(Card).where(Card.key == key)).one()
for auth in card.group.accessauths:
logger.info(f"checking auth: {auth.name}")
if not auth.is_active:
return False
if auth.type == "timetable":
for timetable in auth.timetables:
logger.info(f" checking timetable {timetable.id}")