Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
f14f7840
Commit
f14f7840
authored
Aug 19, 2019
by
Yoël Cornamusaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PrivateProfile attribute in CreateUserOptions and ModifyUserOptions functions
parent
a523e649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
users.go
users.go
+2
-0
No files found.
users.go
View file @
f14f7840
...
...
@@ -163,6 +163,7 @@ type CreateUserOptions struct {
CanCreateGroup
*
bool
`url:"can_create_group,omitempty" json:"can_create_group,omitempty"`
SkipConfirmation
*
bool
`url:"skip_confirmation,omitempty" json:"skip_confirmation,omitempty"`
External
*
bool
`url:"external,omitempty" json:"external,omitempty"`
PrivateProfile
*
bool
`url:"private_profile,omitempty" json:"private_profile,omitempty"`
}
// CreateUser creates a new user. Note only administrators can create new users.
...
...
@@ -205,6 +206,7 @@ type ModifyUserOptions struct {
CanCreateGroup
*
bool
`url:"can_create_group,omitempty" json:"can_create_group,omitempty"`
SkipReconfirmation
*
bool
`url:"skip_reconfirmation,omitempty" json:"skip_reconfirmation,omitempty"`
External
*
bool
`url:"external,omitempty" json:"external,omitempty"`
PrivateProfile
*
bool
`url:"private_profile,omitempty" json:"private_profile,omitempty"`
}
// ModifyUser modifies an existing user. Only administrators can change attributes
...
...
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