summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorEnricoFerro <enrico.ferro@dncsrl.com>2018-08-24 01:59:47 +0200
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-08-23 19:59:47 -0400
commit912953e82a851492c7fd1f2e9c10d3a1955b625c (patch)
tree4ab8ee9e600a691926d3f605ca85360f75e18e9b /routers/api
parent127f4770566e09504a3efe4c4282cee049bad0e1 (diff)
downloadgitea-912953e82a851492c7fd1f2e9c10d3a1955b625c.tar.gz
gitea-912953e82a851492c7fd1f2e9c10d3a1955b625c.zip
API /admin/users/{username} missing parameter (#4775)
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/admin/user.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/api/v1/admin/user.go b/routers/api/v1/admin/user.go
index 69e1761b09..958c083fb6 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -154,6 +154,12 @@ func EditUser(ctx *context.APIContext, form api.EditUserOption) {
if form.MaxRepoCreation != nil {
u.MaxRepoCreation = *form.MaxRepoCreation
}
+ if form.AllowCreateOrganization != nil {
+ u.AllowCreateOrganization = *form.AllowCreateOrganization
+ }
+ if form.ProhibitLogin != nil {
+ u.ProhibitLogin = *form.ProhibitLogin
+ }
if err := models.UpdateUser(u); err != nil {
if models.IsErrEmailAlreadyUsed(err) {