Skip to content

Commit 38d184d

Browse files
6543jolheiser
andauthored
Fix CanCreateRepo check (#15311) (#15321)
Signed-off-by: jolheiser <[email protected]> Co-authored-by: John Olheiser <[email protected]>
1 parent 80b5526 commit 38d184d

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
@@ -192,6 +192,9 @@ func CreatePost(ctx *context.Context) {
192192
ctx.Data["Licenses"] = models.Licenses
193193
ctx.Data["Readmes"] = models.Readmes
194194

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

0 commit comments

Comments
 (0)