mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	fix: Fixed setting userlevel for LDAP auth #5090
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							287449510e
						
					
				
				
					commit
					505e6516b0
				
			@@ -110,9 +110,8 @@ function get_userlevel($username)
 | 
			
		||||
    // Loop the list and find the highest level
 | 
			
		||||
    foreach ($entries as $entry) {
 | 
			
		||||
        $groupname = $entry['cn'][0];
 | 
			
		||||
        $userlevel = array();
 | 
			
		||||
        if ($config['auth_ldap_groups'][$groupname]['level'] > $userlevel) {
 | 
			
		||||
            $userlevel['level'] = $config['auth_ldap_groups'][$groupname]['level'];
 | 
			
		||||
            $userlevel = $config['auth_ldap_groups'][$groupname]['level'];
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user