Skip to content

Commit fb083da

Browse files
committed
Fix bug in is_authorized_in_draft_streamREDESIGN
- Legacy-Id: 3682
1 parent a04d36e commit fb083da

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ietf/ietfworkflows/accounts.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from django.conf import settings
22

3+
from django.db.models import Q
4+
35
from ietf.ietfworkflows.streams import get_streamed_draft
46
from redesign.group.models import Role
57

@@ -82,8 +84,9 @@ def is_authorized_in_draft_streamREDESIGN(user, draft):
8284
return True
8385

8486
# must be a chair or delegate of the stream group (or draft group)
85-
group_req = Q(group__acronym=stream.slug)
86-
if draft.group and stream.slug == "ietf":
87+
from redesign.doc.models import Document
88+
group_req = Q(group__acronym=super(Document, draft).stream.slug)
89+
if draft.group and super(Document, draft).stream.slug == "ietf":
8790
group_req |= Q(group=draft.group)
8891

8992
return bool(Role.objects.filter(name__in=("chair", "delegate"), person__user=user).filter(group_req))

0 commit comments

Comments
 (0)