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

Commit

Permalink
Allow all authenticated users to see all teams
Browse files Browse the repository at this point in the history
Our team application and approval process calls for a public community
comment period, which means that Gratipay users need to be able to see
the teams in question.
  • Loading branch information
chadwhitacre committed May 26, 2015
1 parent 3c776df commit 7f287ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/%team/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ team = get_team(state)
if team.is_approved in (None, False):
if user.ANON:
raise Response(401)
if (not user.ADMIN) and (team.owner != user.participant.username):
raise Response(403)
title = name = team.name

[-----------------------------------------------------------------------------]
Expand All @@ -30,7 +28,9 @@ title = name = team.name
{% endblock %}

{% block sidebar %}
{% if team.is_approved %}
{% include "templates/your-payment.html" %}
{% endif %}
{% endblock %}

{% block content %}
Expand Down

0 comments on commit 7f287ee

Please sign in to comment.