summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 da08862c47..bbf069108c 100644
--- a/routers/api/v1/admin/user.go
+++ b/routers/api/v1/admin/user.go
@@ -107,6 +107,9 @@ func EditUser(ctx *context.APIContext, form api.EditUserOption) {
if form.AllowImportLocal != nil {
u.AllowImportLocal = *form.AllowImportLocal
}
+ if form.MaxRepoCreation != nil {
+ u.MaxRepoCreation = *form.MaxRepoCreation
+ }
if err := models.UpdateUser(u); err != nil {
if models.IsErrEmailAlreadyUsed(err) {