Fixing bug in is_authorized_in_draft_stream: would never return true for WG chairs
- Legacy-Id: 3600
This commit is contained in:
parent
5e983e5be1
commit
5b9b56c5fd
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue