Commit 014ac7ff authored by Adphi's avatar Adphi

Fix User Update ignored fields

parent 2953afd1
Pipeline #654 passed with stage
in 6 minutes and 3 seconds
......@@ -41,7 +41,7 @@ func main() {
}
defer c.Logout()
users, err := c.Users.List()
users, err := c.Users().List()
if err != nil {
panic(err)
}
......
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment