We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80b5526 commit 38d184dCopy full SHA for 38d184d
routers/repo/repo.go
@@ -192,6 +192,9 @@ func CreatePost(ctx *context.Context) {
192
ctx.Data["Licenses"] = models.Licenses
193
ctx.Data["Readmes"] = models.Readmes
194
195
+ ctx.Data["CanCreateRepo"] = ctx.User.CanCreateRepo()
196
+ ctx.Data["MaxCreationLimit"] = ctx.User.MaxCreationLimit()
197
+
198
ctxUser := checkContextUser(ctx, form.UID)
199
if ctx.Written() {
200
return
0 commit comments