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

Commit

Permalink
also redirect when account is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 5, 2015
1 parent 117bd91 commit b95f4e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/on/%platform/%user_name/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ from gratipay.models.account_elsewhere import *
[-----------------------------------------------------------------------------]

platform, account = get_account_elsewhere(website, request)
participant = account.participant

if account.participant.is_claimed:
request.redirect('/%s/' % account.participant.username)
if participant.is_claimed or participant.is_closed:
request.redirect('/%s/' % participant.username)

title = username = user_name = account.user_name
participant = account.participant
locked = participant.goal == -1
is_team = account.is_team
allow_pledges = not locked and (not is_team or platform.allows_team_connect)
Expand Down

0 comments on commit b95f4e5

Please sign in to comment.