Updated the doc stream auth function to permit Area Directors to edit stream

info for ietf documents.
 - Legacy-Id: 5841
This commit is contained in:
Henrik Levkowetz 2013-07-17 22:28:33 +00:00
parent 92a8ed56a8
commit 07683cae08

View file

@ -102,6 +102,8 @@ def is_authorized_in_doc_stream(user, doc):
group_req = None
if doc.stream.slug == "ietf":
if has_role(user, ["Area Director"]):
return True
if not doc.group.type == "individ":
group_req = Q(group=doc.group)
elif doc.stream.slug == "irtf":