mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Reduce access restrictions on user list
This commit is contained in:
parent
5c13200429
commit
da33b10612
@ -59,6 +59,7 @@
|
||||
</li>
|
||||
{% if current_user.canAccessTodoList() %}
|
||||
<li><a href="{{ url_for('todo_page') }}">Work Queue</a></li>
|
||||
<li><a href="{{ url_for('user_list_page') }}">User list</a></li>
|
||||
{% endif %}
|
||||
{% if current_user.rank == current_user.rank.ADMIN %}
|
||||
<li><a href="{{ url_for('admin_page') }}">Admin</a></li>
|
||||
|
@ -37,7 +37,7 @@ class UserProfileForm(FlaskForm):
|
||||
submit = SubmitField("Save")
|
||||
|
||||
@app.route("/users/", methods=["GET"])
|
||||
@rank_required(UserRank.MODERATOR)
|
||||
@login_required
|
||||
def user_list_page():
|
||||
users = User.query.order_by(db.asc(User.rank), db.asc(User.display_name)).all()
|
||||
return render_template("users/list.html", users=users)
|
||||
|
Loading…
Reference in New Issue
Block a user