Skip to content

Commit af443c8

Browse files
committed
Require login for stats pages
1 parent d5c114f commit af443c8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/blueprints/packages/packages.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ def game_support(package):
827827

828828

829829
@bp.route("/packages/<author>/<name>/stats/")
830+
@login_required
830831
@is_package_page
831832
def statistics(package):
832833
start = request.args.get("start")

app/blueprints/users/profile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def statistics_redirect():
272272

273273

274274
@bp.route("/users/<username>/stats/")
275+
@login_required
275276
def statistics(username):
276277
user = User.query.filter_by(username=username).first()
277278
if user is None:

0 commit comments

Comments
 (0)