mirror of
				https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
				synced 2025-11-04 05:11:46 +00:00 
			
		
		
		
	Fix User Update ignored fields
This commit is contained in:
		@@ -41,7 +41,7 @@ func main() {
 | 
			
		||||
    }
 | 
			
		||||
    defer c.Logout()
 | 
			
		||||
 | 
			
		||||
    users, err := c.Users.List()
 | 
			
		||||
    users, err := c.Users().List()
 | 
			
		||||
    if err != nil {
 | 
			
		||||
        panic(err)
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								users.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								users.go
									
									
									
									
									
								
							@@ -351,11 +351,11 @@ func (u *Users) baseRequest(method string, ro *req.RequestOptions, subRoutes ...
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ignoredUserField(key string) bool {
 | 
			
		||||
	keys := []string{"ID", "Quota", "Enabled", "Groups", "Language"}
 | 
			
		||||
	keys := []string{"Email", "DisplayName", "Phone", "Address", "Website", "Twitter", "Quota"}
 | 
			
		||||
	for _, k := range keys {
 | 
			
		||||
		if key == k {
 | 
			
		||||
			return true
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
			return false
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	return true
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user