Skip to content

Commit 8727626

Browse files
committed
Check for no doc.stream first, to avoid exception on doc.stream.slug.
- Legacy-Id: 8201
1 parent a816098 commit 8727626

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/ietfauth/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def is_authorized_in_doc_stream(user, doc):
109109

110110
group_req = None
111111

112-
if (doc.stream.slug == "ietf" or not doc.stream) and has_role(user, ["Area Director"]):
112+
if (not doc.stream or doc.stream.slug == "ietf") and has_role(user, ["Area Director"]):
113113
return True
114114

115115
if not doc.stream:

0 commit comments

Comments
 (0)