We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
admin user list
1 parent 9c4601b commit 477c453Copy full SHA for 477c453
models/user.go
@@ -236,10 +236,10 @@ func (u *User) GetEmail() string {
236
return u.Email
237
}
238
239
-// GetAllUsers returns a slice of all users found in DB.
+// GetAllUsers returns a slice of all individual users found in DB.
240
func GetAllUsers() ([]*User, error) {
241
users := make([]*User, 0)
242
- return users, x.OrderBy("id").Find(&users)
+ return users, x.OrderBy("id").Where("type = ?", UserTypeIndividual).Find(&users)
243
244
245
// IsLocal returns true if user login type is LoginPlain.
0 commit comments