diff options
Diffstat (limited to 'routers/web/repo/setting.go')
-rw-r--r-- | routers/web/repo/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go index 5457e651d3..57a195ee62 100644 --- a/routers/web/repo/setting.go +++ b/routers/web/repo/setting.go @@ -609,7 +609,7 @@ func SettingsPost(ctx *context.Context) { } if !ctx.Repo.Owner.CanCreateRepo() { - maxCreationLimit := ctx.User.MaxCreationLimit() + maxCreationLimit := ctx.Repo.Owner.MaxCreationLimit() if maxCreationLimit == 1 { ctx.Flash.Error(ctx.Tr("repo.form.reach_limit_of_creation_1", maxCreationLimit)) } else { |