mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Minor fix for #2578
This commit is contained in:
		@@ -260,15 +260,15 @@ func getOrgsByUserID(sess *xorm.Session, userID int64) ([]*User, error) {
 | 
				
			|||||||
		Join("INNER", "`org_user`", "`org_user`.org_id=`user`.id").Find(&orgs)
 | 
							Join("INNER", "`org_user`", "`org_user`.org_id=`user`.id").Find(&orgs)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetPublicOrgsByUserID returns a list of organizations that the given user ID
 | 
					// GetOrgsByUserID returns a list of organizations that the given user ID
 | 
				
			||||||
// has joined publicly.
 | 
					// has joined.
 | 
				
			||||||
func GetOrgsByUserID(userID int64) ([]*User, error) {
 | 
					func GetOrgsByUserID(userID int64) ([]*User, error) {
 | 
				
			||||||
	sess := x.NewSession()
 | 
						sess := x.NewSession()
 | 
				
			||||||
	return getOrgsByUserID(sess, userID)
 | 
						return getOrgsByUserID(sess, userID)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetPublicOrgsByUserID returns a list of organizations that the given user ID
 | 
					// GetOrgsByUserIDDesc returns a list of organizations that the given user ID
 | 
				
			||||||
// has joined publicly, ordered descending by the given condition.
 | 
					// has joined, ordered descending by the given condition.
 | 
				
			||||||
func GetOrgsByUserIDDesc(userID int64, desc string, all bool) ([]*User, error) {
 | 
					func GetOrgsByUserIDDesc(userID int64, desc string, all bool) ([]*User, error) {
 | 
				
			||||||
	sess := x.NewSession()
 | 
						sess := x.NewSession()
 | 
				
			||||||
	if !all {
 | 
						if !all {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user