Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Commit

Permalink
Patched shadowban error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsosa committed Mar 25, 2017
1 parent 57b6a04 commit 960a562
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ def profile():
account = Account.objects(email=email).first()
profile = account.profile

# Shadowban?
if profile.shadowban is True:
abort(404)
# # Shadowban?
# if profile is not None and profile.shadowban is True:
# abort(404)

#Getting information from form
if request.method =='POST':
Expand Down Expand Up @@ -459,9 +459,9 @@ def team_update():
try:
team = profile.team

# Shadowban?
if team.shadowban is True:
abort(404)
# # Shadowban?
# if team.shadowban is True:
# abort(404)

team.teamName = request.form['teamName'] or "Unnamed Team"
team.teamName = team.teamName[:Team.MAX_NAME_LENGTH]
Expand Down

0 comments on commit 960a562

Please sign in to comment.