mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Fix admin user list (#15358)
				
					
				
			This commit is contained in:
		@@ -236,10 +236,10 @@ func (u *User) GetEmail() string {
 | 
				
			|||||||
	return u.Email
 | 
						return u.Email
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetAllUsers returns a slice of all users found in DB.
 | 
					// GetAllUsers returns a slice of all individual users found in DB.
 | 
				
			||||||
func GetAllUsers() ([]*User, error) {
 | 
					func GetAllUsers() ([]*User, error) {
 | 
				
			||||||
	users := make([]*User, 0)
 | 
						users := make([]*User, 0)
 | 
				
			||||||
	return users, x.OrderBy("id").Find(&users)
 | 
						return users, x.OrderBy("id").Where("type = ?", UserTypeIndividual).Find(&users)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// IsLocal returns true if user login type is LoginPlain.
 | 
					// IsLocal returns true if user login type is LoginPlain.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user