Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Revert "Restrict access of the "Distributing" page"
Browse files Browse the repository at this point in the history
This reverts commit d39d411.
  • Loading branch information
nashe committed Aug 3, 2016
1 parent 51d9739 commit 1733e21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
9 changes: 1 addition & 8 deletions tests/py/test_team_takes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 0 additions & 9 deletions www/%team/distributing/index.html.spt
Original file line number Diff line number Diff line change
@@ -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")

[-----------------------------------------------------------------------------]
Expand Down

0 comments on commit 1733e21

Please sign in to comment.