mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	String admin id compare to see if they can access /admin point
This commit is contained in:
		@@ -16,7 +16,7 @@ def is_admin(f):
 | 
			
		||||
        def decorated_function(*args, **kwargs):
 | 
			
		||||
            if 'user_id' not in session:
 | 
			
		||||
                return redirect(url_for("index"))
 | 
			
		||||
            if session['user_id'] not in get_administrators_list():
 | 
			
		||||
            if str(session['user_id']) not in get_administrators_list():
 | 
			
		||||
                return redirect(url_for("index"))
 | 
			
		||||
            return f(*args, **kwargs)
 | 
			
		||||
        return decorated_function
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user