Fixing bug in is_authorized_in_draft_stream: would never return true for WG chairs

- Legacy-Id: 3600
This commit is contained in:
Adam Roach 2011-11-12 04:45:33 +00:00
parent 5e983e5be1
commit 5b9b56c5fd

View file

@ -53,7 +53,7 @@ def is_authorized_in_draft_stream(user, draft):
return True
# Check if the person is chair of the related group
chairs = streamed.stream.get_chairs_for_document(draft)
if chairs and person in chairs:
if chairs and person in [i.person for i in chairs]:
return True
# Check if the person is authorized by a delegate system
delegates = streamed.stream.get_delegates_for_document(draft)