Fix User Update ignored fields

This commit is contained in:
Adphi 2019-01-18 11:16:49 +01:00
parent 2953afd160
commit 014ac7ff7e
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ func main() {
}
defer c.Logout()
users, err := c.Users.List()
users, err := c.Users().List()
if err != nil {
panic(err)
}

View File

@ -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
}