Skip to content

Commit 426ebbf

Browse files
authored
Fix CanCreateRepo check (#15311)
Signed-off-by: jolheiser <[email protected]>
1 parent 75dfc46 commit 426ebbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/repo/repo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ func CreatePost(ctx *context.Context) {
193193
ctx.Data["Licenses"] = models.Licenses
194194
ctx.Data["Readmes"] = models.Readmes
195195

196+
ctx.Data["CanCreateRepo"] = ctx.User.CanCreateRepo()
197+
ctx.Data["MaxCreationLimit"] = ctx.User.MaxCreationLimit()
198+
196199
ctxUser := checkContextUser(ctx, form.UID)
197200
if ctx.Written() {
198201
return

0 commit comments

Comments
 (0)