Merged in [19311] from rjsparks@nostrum.com:

Adjust tests and forms to match changes to permissions made in through the admin. These need to use the data rather than the code. See .
 - Legacy-Id: 19331
Note: SVN reference [19311] has been migrated to Git commit 4240ce088e
This commit is contained in:
Robert Sparks 2021-09-03 22:08:07 +00:00
commit 0ebccd4583
2 changed files with 2 additions and 2 deletions
ietf

View file

@ -280,7 +280,7 @@ class GroupPagesTests(TestCase):
'rg' : ['secretary','irtf-chair'],
'ag' : ['secretary', 'ad' ],
'rag' : ['secretary', 'irtf-chair'],
'team' : ['secretary',], # The code currently doesn't let ads edit teams or directorates. Maybe it should.
'team' : ['secretary' , 'ad'],
'dir' : ['secretary',],
'review' : ['secretary',],
'program' : ['secretary', 'iab-member'],

View file

@ -155,7 +155,7 @@ class InterimMeetingModelForm(forms.ModelForm):
return # don't reduce group options
q_objects = Q()
if has_role(self.user, "Area Director"):
q_objects.add(Q(type__in=["wg", "ag"], state__in=("active", "proposed", "bof")), Q.OR)
q_objects.add(Q(type__in=["wg", "ag", "team"], state__in=("active", "proposed", "bof")), Q.OR)
if has_role(self.user, "IRTF Chair"):
q_objects.add(Q(type__in=["rg", "rag"], state__in=("active", "proposed")), Q.OR)
if has_role(self.user, "WG Chair"):