Skip to content

Commit 4240ce0

Browse files
committed
Adjust tests to match changes to permissions made in through the admin. These need to use the data rather than the code. See ietf-tools#3393. Commit ready for merge.
- Legacy-Id: 19311
1 parent 847f37d commit 4240ce0

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)