Made changes to the can_adopt_draft() logic, to make it possible for a chair of multiple groups to correct the mistake if adoption was made for the wrong group.
- Legacy-Id: 13662
This commit is contained in:
parent
0d82d6b5c4
commit
1905d25aee
|
@ -106,12 +106,15 @@ def can_adopt_draft(user, doc):
|
|||
return (doc.stream_id in (None, "irtf")
|
||||
and doc.group.type_id == "individ")
|
||||
|
||||
roles = Role.objects.filter(name__in=("chair", "delegate", "secr"),
|
||||
group__type__in=("wg", "rg"),
|
||||
group__state="active",
|
||||
person__user=user)
|
||||
role_groups = [ r.group for r in roles ]
|
||||
|
||||
return (doc.stream_id in (None, "ietf", "irtf")
|
||||
and doc.group.type_id == "individ"
|
||||
and Role.objects.filter(name__in=("chair", "delegate", "secr"),
|
||||
group__type__in=("wg", "rg"),
|
||||
group__state="active",
|
||||
person__user=user).exists())
|
||||
and (doc.group.type_id == "individ" or doc.group in role_groups)
|
||||
and roles.exists())
|
||||
|
||||
def two_thirds_rule( recused=0 ):
|
||||
# For standards-track, need positions from 2/3 of the non-recused current IESG.
|
||||
|
|
Loading…
Reference in a new issue