mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 01:20:41 +00:00
Add some docstrings
This commit is contained in:
@ -15,6 +15,9 @@ def index():
|
||||
@login_required
|
||||
@admin_required
|
||||
def for_admins_only():
|
||||
"""
|
||||
View for admin page only accesible by admins.
|
||||
"""
|
||||
users = User.query.order_by(User.username).all()
|
||||
items = [AdminUserItem(u.username, u.email, u.role_id, u.confirmed) for u in users]
|
||||
table = AdminUserTable(items)
|
||||
|
Reference in New Issue
Block a user