Skip to content

Commit a576127

Browse files
authored
Update use_cases.py
1 parent 7015026 commit a576127

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

studenti/src/studenti/aplikacija/use_cases.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ def preveri_upravicenost(self, student_id: int, predmet_id: str | None = None) -
1111
if not student:
1212
return {"allowed": False, "reason": "STUDENT_NE_OBSTAJA"}
1313

14-
# Minimalno pravilo za nalogo: samo AKTIVEN
14+
1515
if student.status != "AKTIVEN":
1616
return {"allowed": False, "reason": "NEAKTIVEN_STATUS"}
1717

18-
# predmet_id za kasneje (pogoji po predmetu)
19-
return {"allowed": True, "reason": "OK"}
18+
return {"allowed": True, "reason": "OK"}

0 commit comments

Comments
 (0)