summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/repo.go')
-rw-r--r--routers/web/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/repo.go b/routers/web/repo/repo.go
index 0d8c6d374f..8e0998225a 100644
--- a/routers/web/repo/repo.go
+++ b/routers/web/repo/repo.go
@@ -163,7 +163,7 @@ func handleCreateError(ctx *context.Context, owner *user_model.User, err error,
switch {
case repo_model.IsErrReachLimitOfRepo(err):
var msg string
- maxCreationLimit := ctx.User.MaxCreationLimit()
+ maxCreationLimit := owner.MaxCreationLimit()
if maxCreationLimit == 1 {
msg = ctx.Tr("repo.form.reach_limit_of_creation_1", maxCreationLimit)
} else {