diff options
Diffstat (limited to 'routers/web/org/setting.go')
-rw-r--r-- | routers/web/org/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 404aac8894..72c25ec25d 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -96,7 +96,7 @@ func SettingsPost(ctx *context.Context) { org.Name = form.Name org.LowerName = strings.ToLower(form.Name) - if ctx.User.IsAdmin { + if ctx.Doer.IsAdmin { org.MaxRepoCreation = form.MaxRepoCreation } |