mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-16 11:44:22 +01:00
404 for team pages
This commit is contained in:
@@ -136,6 +136,8 @@ def team(teamid):
|
||||
if get_config('view_scoreboard_if_authed') and not authed():
|
||||
return redirect(url_for('auth.login', next=request.path))
|
||||
user = Teams.query.filter_by(id=teamid).first()
|
||||
if not user:
|
||||
abort(404)
|
||||
solves = Solves.query.filter_by(teamid=teamid)
|
||||
awards = Awards.query.filter_by(teamid=teamid).all()
|
||||
score = user.score()
|
||||
|
||||
Reference in New Issue
Block a user