We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8f7a6b commit 4fbe645Copy full SHA for 4fbe645
models/org.go
@@ -476,7 +476,8 @@ func GetOrgsCanCreateRepoByUserID(userID int64) ([]*User, error) {
476
Join("INNER", "`team`", "`team`.id = `team_user`.team_id").
477
Where(builder.Eq{"`team_user`.uid": userID}).
478
And(builder.Eq{"`team`.authorize": AccessModeOwner}.Or(builder.Eq{"`team`.can_create_org_repo": true})))).
479
- Desc("`user`.updated_unix").Find(&orgs)
+ Asc("`user`.name").
480
+ Find(&orgs)
481
}
482
483
// GetOrgUsersByUserID returns all organization-user relations by user ID.
0 commit comments