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

Commit

Permalink
Show a 401 to anons
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed May 13, 2015
1 parent f06a777 commit 066a2c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions www/new.spt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
from aspen import Response

from gratipay.models.team import Team
[---]
if user.ANON:
raise Response(401, _("You must sign in to apply for a new team"))

if request.method == 'POST':
Team.create_new()

title = _("Apply for a New Team")
[---] text/html
{% extends "templates/base.html" %}
Expand Down

0 comments on commit 066a2c8

Please sign in to comment.