Merged [3600] from adam@nostrum.com:

Fixing bug in is_authorized_in_draft_stream: would never return true for WG chairs
 - Legacy-Id: 3624
Note: SVN reference [3600] has been migrated to Git commit 5b9b56c5fd
This commit is contained in:
Henrik Levkowetz 2011-11-16 04:23:03 +00:00
commit e8b787312d

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)