mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-13 06:46:25 +00:00
Fix User Update fields filter
This commit is contained in:
parent
014ac7ff7e
commit
4925b52a0e
6
users.go
6
users.go
@ -194,6 +194,10 @@ func (u *Users) Update(user *types.UserDetails) error {
|
||||
errs := make(chan types.UpdateError)
|
||||
var wg sync.WaitGroup
|
||||
for k := range m {
|
||||
// Filter updatable fields
|
||||
if ignoredUserField(k) {
|
||||
continue
|
||||
}
|
||||
var value string
|
||||
// Quota is a special case
|
||||
if k == "Quota" {
|
||||
@ -206,7 +210,7 @@ func (u *Users) Update(user *types.UserDetails) error {
|
||||
} else {
|
||||
value = m[k].(string)
|
||||
}
|
||||
if !ignoredUserField(k) && value != "" {
|
||||
if value != "" {
|
||||
wg.Add(1)
|
||||
// All other non ignored values are strings
|
||||
go func(key string, value string) {
|
||||
|
Loading…
Reference in New Issue
Block a user