summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/admin/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/admin/user.go')
-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) {