Skip to content
Snippets Groups Projects
Commit c1ec3a81 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch '232-fix-get_objects-method-of-lessonevent' into 'master'

Resolve "Fix get_objects method of LessonEvent"

Closes #232

See merge request !335
parents ad1d06fe 3d330d3a
No related branches found
No related tags found
1 merge request!335Resolve "Fix get_objects method of LessonEvent"
Pipeline #175329 failed
...@@ -1589,6 +1589,9 @@ class LessonEvent(CalendarEvent): ...@@ -1589,6 +1589,9 @@ class LessonEvent(CalendarEvent):
return objs.for_room(obj_id) return objs.for_room(obj_id)
elif type_ == "COURSE": elif type_ == "COURSE":
return objs.for_course(obj_id) return objs.for_course(obj_id)
if "own" in params:
return objs
if request: if request:
return objs.for_person(request.user.person) return objs.for_person(request.user.person)
return objs return objs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment