def users(username=None): if username: return redirect(url_for('users_edit', username=username)) else: users=dqusers.user() return render_template("users.html", users=users, admin=usermanagement.check_perms('admin'), loggedinuser=current_user)
def load_user(id): return dqusers.user(id)