Fix #49 when deleting a global admin

master
Pierre Jaury 8 years ago
parent 1273571299
commit 8601d5b8db

@ -36,7 +36,7 @@ def admin_create():
@app.route('/admin/delete/<admin>', methods=['GET', 'POST']) @app.route('/admin/delete/<admin>', methods=['GET', 'POST'])
@utils.confirmation_required("delete admin {admin }") @utils.confirmation_required("delete admin {admin}")
@flask_login.login_required @flask_login.login_required
def admin_delete(admin): def admin_delete(admin):
user = models.User.query.get(admin) user = models.User.query.get(admin)

Loading…
Cancel
Save