mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-08-29 22:06:06 +02:00
Fix admin user list
(#15358)
This commit is contained in:
parent
9c4601bdf8
commit
477c4530e4
1 changed files with 2 additions and 2 deletions
|
@ -236,10 +236,10 @@ func (u *User) GetEmail() string {
|
|||
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) {
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue