Browse Source

Fix CanCreateRepo check (#15311)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tags/v1.15.0-rc1
John Olheiser 4 years ago committed by GitHub
parent
commit
426ebbfc3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      routers/repo/repo.go

3
routers/repo/repo.go

@ -193,6 +193,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

Loading…
Cancel
Save