Skip to content

Commit 427d9fe

Browse files
committed
Removed the IETF chair as a recipient of new IPR disclosures if there is no group or active document to send them to. Fixes ietf-tools#2727. Commit ready for merge.
- Legacy-Id: 16248
1 parent 4986f50 commit 427d9fe

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

ietf/mailtrigger/models.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
import debug # pyflakes:ignore
1212

13-
from ietf.group.models import Role
14-
1513
def clean_duplicates(addrlist):
1614
address_info = {}
1715
for a in addrlist:
@@ -295,15 +293,15 @@ def gather_ipr_updatedipr_holders(self, **kwargs):
295293
def gather_doc_ipr_group_or_ad(self, **kwargs):
296294
"""A document's group email list if the document is a group document,
297295
otherwise, the document's AD if the document is active, otherwise
298-
the IETF chair"""
296+
nobody (in the past, the default was the IETF chair)"""
299297
addrs=[]
300298
if 'doc' in kwargs:
301299
doc=kwargs['doc']
302300
if doc.group and doc.group.acronym == 'none':
303301
if doc.ad and doc.get_state_slug('draft')=='active':
304302
addrs.extend(Recipient.objects.get(slug='doc_ad').gather(**kwargs))
305303
else:
306-
addrs.extend(Role.objects.filter(group__acronym='gen',name='ad').values_list('email__address',flat=True))
304+
pass
307305
else:
308306
addrs.extend(Recipient.objects.get(slug='doc_group_mail_list').gather(**kwargs))
309307
return addrs

0 commit comments

Comments
 (0)