Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Partitio
Nextcloud-Partitio
gonextcloud
Commits
014ac7ff
Commit
014ac7ff
authored
Jan 18, 2019
by
Adphi
Browse files
Fix User Update ignored fields
parent
2953afd1
Pipeline
#654
passed with stage
in 6 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
014ac7ff
...
...
@@ -41,7 +41,7 @@ func main() {
}
defer
c
.
Logout
()
users
,
err
:=
c
.
Users
.
List
()
users
,
err
:=
c
.
Users
()
.
List
()
if
err
!=
nil
{
panic
(
err
)
}
...
...
users.go
View file @
014ac7ff
...
...
@@ -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
tru
e
return
fals
e
}
}
return
fals
e
return
tru
e
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment