aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-05-02 21:03:15 +0200
committerGitHub <noreply@github.com>2021-05-02 21:03:15 +0200
commit8c8471e75464fa6253a44cdbb8f6ad233aae9067 (patch)
treef8fd7e87b26f2b735208cb95de147c2ef93d814e /routers
parent0590176a23c056b274bd30ff7cec8f8a203f0665 (diff)
downloadgitea-8c8471e75464fa6253a44cdbb8f6ad233aae9067.tar.gz
gitea-8c8471e75464fa6253a44cdbb8f6ad233aae9067.zip
Addition to (Add Location, Website and Description to API #15675) (#15690)
* Use same name as other structs. * Sync with normal forms. * Edit description with API. * Workaround for nil value.
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/admin/user.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go
index 5a74c6ccd5..2d4a3815f4 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -203,6 +203,9 @@ func EditUser(ctx *context.APIContext) {
if form.Location != nil {
u.Location = *form.Location
}
+ if form.Description != nil {
+ u.Description = *form.Description
+ }
if form.Active != nil {
u.IsActive = *form.Active
}