diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-06-10 00:11:57 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-06-10 00:11:57 +0100 |
commit | 2fbc44bd54a3f0ed67cbb6236e38afbb407a2135 (patch) | |
tree | 5d4aa307212ee5bfe406b83a17de6a7ec16037ab /app/views/users/users.py | |
parent | 950512c2a7aab1706f29aa6f57ef7b0fa5f6a1e9 (diff) | |
download | cheatdb-2fbc44bd54a3f0ed67cbb6236e38afbb407a2135.tar.xz |
Make user list public
Diffstat (limited to 'app/views/users/users.py')
-rw-r--r-- | app/views/users/users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/users.py b/app/views/users/users.py index 6317d6b..02def25 100644 --- a/app/views/users/users.py +++ b/app/views/users/users.py @@ -35,8 +35,8 @@ class UserProfileForm(FlaskForm): rank = SelectField("Rank", [Optional()], choices=UserRank.choices(), coerce=UserRank.coerce, default=UserRank.NEW_MEMBER) submit = SubmitField("Save") + @app.route("/users/", methods=["GET"]) -@login_required def user_list_page(): users = User.query.order_by(db.desc(User.rank), db.asc(User.display_name)).all() return render_template("users/list.html", users=users) |