From 38d184d51883b1e8563b3cb9a9b8909a47502920 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 7 Apr 2021 22:14:11 +0200 Subject: [PATCH] Fix CanCreateRepo check (#15311) (#15321) Signed-off-by: jolheiser Co-authored-by: John Olheiser --- routers/repo/repo.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 6fa566e7d..1d93978a9 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