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

Commit

Permalink
Merge pull request #3055 from gratipay/redirect-when-closed
Browse files Browse the repository at this point in the history
Also redirect when account is closed
  • Loading branch information
chadwhitacre committed Jan 6, 2015
2 parents 117bd91 + b95f4e5 commit a10525d
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 a10525d

Please sign in to comment.