Skip to content

Commit 0ebccd4

Browse files
committed
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 ietf-tools#3393. - Legacy-Id: 19331 Note: SVN reference [19311] has been migrated to Git commit 4240ce0
2 parents c8552cb + 4240ce0 commit 0ebccd4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/group/tests_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def test_group_about(self):
280280
'rg' : ['secretary','irtf-chair'],
281281
'ag' : ['secretary', 'ad' ],
282282
'rag' : ['secretary', 'irtf-chair'],
283-
'team' : ['secretary',], # The code currently doesn't let ads edit teams or directorates. Maybe it should.
283+
'team' : ['secretary' , 'ad'],
284284
'dir' : ['secretary',],
285285
'review' : ['secretary',],
286286
'program' : ['secretary', 'iab-member'],

ietf/meeting/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def set_group_options(self):
155155
return # don't reduce group options
156156
q_objects = Q()
157157
if has_role(self.user, "Area Director"):
158-
q_objects.add(Q(type__in=["wg", "ag"], state__in=("active", "proposed", "bof")), Q.OR)
158+
q_objects.add(Q(type__in=["wg", "ag", "team"], state__in=("active", "proposed", "bof")), Q.OR)
159159
if has_role(self.user, "IRTF Chair"):
160160
q_objects.add(Q(type__in=["rg", "rag"], state__in=("active", "proposed")), Q.OR)
161161
if has_role(self.user, "WG Chair"):

0 commit comments

Comments
 (0)