diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 6fa566e7d6f4..1d93978a90af 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -192,6 +192,9 @@ func CreatePost(ctx *context.Context) { ctx.Data["Licenses"] = models.Licenses ctx.Data["Readmes"] = models.Readmes + ctx.Data["CanCreateRepo"] = ctx.User.CanCreateRepo() + ctx.Data["MaxCreationLimit"] = ctx.User.MaxCreationLimit() + ctxUser := checkContextUser(ctx, form.UID) if ctx.Written() { return