Skip to content

Commit

Permalink
chore(user): update user attributes
Browse files Browse the repository at this point in the history
This also workarounds an GitLab issue, where private_profile, would reset to false if not supplied
  • Loading branch information
max-wittig committed Feb 5, 2020
1 parent 7843ace commit 27375f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gitlab/v4/objects.py
Expand Up @@ -414,6 +414,7 @@ class UserManager(CRUDMixin, RESTManager):
"search",
"custom_attributes",
"status",
"two_factor",
)
_create_attrs = (
tuple(),
Expand All @@ -438,6 +439,8 @@ class UserManager(CRUDMixin, RESTManager):
"organization",
"location",
"avatar",
"public_email",
"private_profile",
),
)
_update_attrs = (
Expand All @@ -459,6 +462,8 @@ class UserManager(CRUDMixin, RESTManager):
"organization",
"location",
"avatar",
"public_email",
"private_profile",
),
)
_types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}
Expand Down

0 comments on commit 27375f6

Please sign in to comment.