diff --git a/tests/py/test_team_takes.py b/tests/py/test_team_takes.py index 2ea7d9105b..9ab700f4f9 100644 --- a/tests/py/test_team_takes.py +++ b/tests/py/test_team_takes.py @@ -22,15 +22,8 @@ def setUp(self): , verified_in='US' ) -class Tests(TeamTakesHarness): - - def test_distributing_page_access_is_restricted(self): - admin = self.make_participant('admin', is_admin=True) - assert self.client.GxT(self.enterprise.slug+'/distributing/') - assert self.client.GxT(self.enterprise.slug+'/distributing/', auth_as='bruiser') - assert self.client.GET(self.enterprise.slug+'/distributing/', auth_as='picard') - assert self.client.GET(self.enterprise.slug+'/distributing/', auth_as='admin') +class Tests(TeamTakesHarness): # gtf - get_take_for diff --git a/www/%team/distributing/index.html.spt b/www/%team/distributing/index.html.spt index 4697de9bc2..96f03dd849 100644 --- a/www/%team/distributing/index.html.spt +++ b/www/%team/distributing/index.html.spt @@ -1,19 +1,10 @@ # encoding: utf8 - -from aspen import Response from gratipay.utils import get_team [-----------------------------------------------------------------------------] team = get_team(state) if team.available == 0: website.redirect('..', base_url='') - -if user.participant == None: - raise Response(401) - -if not (user.ADMIN or user.participant.member_of(team) or user.participant.username == team.owner): - raise Response(403) - title = _("Team Members") [-----------------------------------------------------------------------------]