diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py index 7d14c0f74e45c76418a5b27276f09779ce3d4cc6..b5c2cc6c22a1c349ff3ca4751613d9749c169e70 100644 --- a/aleksis/apps/chronos/models.py +++ b/aleksis/apps/chronos/models.py @@ -1596,6 +1596,9 @@ class LessonEvent(CalendarEvent): return objs.for_room(obj_id) elif type_ == "COURSE": return objs.for_course(obj_id) + + if "own" in params: + return objs if request: return objs.for_person(request.user.person) return objs diff --git a/pyproject.toml b/pyproject.toml index b399b79ca2354aa14bbdbd02b25003d5f05852b4..843a09f56bcf2c750e650a0a9820c3cc4e251dd1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "AlekSIS-App-Chronos" -version = "4.0.0.dev1" +version = "4.0.0.dev3" packages = [ { include = "aleksis" } ] @@ -51,7 +51,7 @@ priority = "supplemental" [tool.poetry.dependencies] python = "^3.10" calendarweek = "^0.5.0" -aleksis-core = "^4.0.0.dev2" +aleksis-core = "^4.0.0.dev5" aleksis-app-resint = "^4.0.0.dev1" aleksis-app-cursus = "^0.1.dev0"