Empty server manage server list should not automatically log you out, oauth fix

This commit is contained in:
Jeremy Zhang 2017-09-06 20:59:05 +00:00
parent 2f552ca87f
commit 21400679b6

View File

@ -63,9 +63,6 @@ def logout():
@discord_users_only()
def dashboard():
guilds = get_user_managed_servers()
if not guilds:
session["redirect"] = url_for("user.dashboard")
return redirect(url_for("user.logout"))
error = request.args.get("error")
if session["redirect"] and not (error and error == "access_denied"):
redir = session['redirect']