mirror of
				https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
				synced 2025-11-04 11:01:46 +00:00 
			
		
		
		
	Fix User Update ignored fields
This commit is contained in:
		@@ -41,7 +41,7 @@ func main() {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    defer c.Logout()
 | 
					    defer c.Logout()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    users, err := c.Users.List()
 | 
					    users, err := c.Users().List()
 | 
				
			||||||
    if err != nil {
 | 
					    if err != nil {
 | 
				
			||||||
        panic(err)
 | 
					        panic(err)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								users.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								users.go
									
									
									
									
									
								
							@@ -351,11 +351,11 @@ func (u *Users) baseRequest(method string, ro *req.RequestOptions, subRoutes ...
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func ignoredUserField(key string) bool {
 | 
					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 {
 | 
						for _, k := range keys {
 | 
				
			||||||
		if key == k {
 | 
							if key == k {
 | 
				
			||||||
			return true
 | 
								return false
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return false
 | 
						return true
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user