mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-21 19:26:24 +00:00
Fix User Update ignored fields
This commit is contained in:
parent
2953afd160
commit
014ac7ff7e
@ -41,7 +41,7 @@ func main() {
|
||||
}
|
||||
defer c.Logout()
|
||||
|
||||
users, err := c.Users.List()
|
||||
users, err := c.Users().List()
|
||||
if err != nil {
|
||||
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 {
|
||||
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 false
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user