aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 6fd06560..0d85aeb7 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -693,8 +693,7 @@ def dashboard():
Adminstrator's dashboard.
"""
users = User.query.all()
- users.remove(g.user)
- return render_template('admin/dashboard.html', users=users)
+ return render_template('admin/dashboard.html', users=users, current_user=g.user)
@app.route('/admin/create_user/', methods=['GET', 'POST'])
@app.route('/admin/edit_user/<int:user_id>/', methods=['GET', 'POST'])
bgstack15