mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Empty server manage server list should not automatically log you out, oauth fix
This commit is contained in:
		@@ -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']
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user