mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	#1692 add organization APIs
This commit is contained in:
		@@ -376,8 +376,8 @@ func (u *User) GetOwnedOrganizations() (err error) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GetOrganizations returns all organizations that user belongs to.
 | 
			
		||||
func (u *User) GetOrganizations() error {
 | 
			
		||||
	ous, err := GetOrgUsersByUserId(u.Id)
 | 
			
		||||
func (u *User) GetOrganizations(all bool) error {
 | 
			
		||||
	ous, err := GetOrgUsersByUserID(u.Id, all)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user