Skip to content

Commit db35af8

Browse files
committed
Fixed an issue which could result in server 500 errors for paths like /meeting/99/session/plenary.
- Legacy-Id: 14955
1 parent d6a709f commit db35af8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,9 @@ def session_details(request, num, acronym ):
10741074
qs = [p for p in qs if p.document.get_state_slug(p.document.type_id)!='deleted']
10751075
session.type_counter.update([p.document.type.slug for p in qs])
10761076

1077-
can_manage = can_manage_materials(request.user, Group.objects.get(acronym=acronym))
1077+
# we somewhat arbitrarily use the group of the last session wet get from
1078+
# get_sessions() above when checking can_manage_materials()
1079+
can_manage = can_manage_materials(request.user, session.group)
10781080

10791081
scheduled_sessions=[s for s in sessions if s.status_id=='sched']
10801082
unscheduled_sessions = [s for s in sessions if s.status_id!='sched']

0 commit comments

Comments
 (0)