forked from NYANDEV/forgejo
Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
80b55263d8
commit
38d184d518
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ func CreatePost(ctx *context.Context) {
|
||||||
ctx.Data["Licenses"] = models.Licenses
|
ctx.Data["Licenses"] = models.Licenses
|
||||||
ctx.Data["Readmes"] = models.Readmes
|
ctx.Data["Readmes"] = models.Readmes
|
||||||
|
|
||||||
|
ctx.Data["CanCreateRepo"] = ctx.User.CanCreateRepo()
|
||||||
|
ctx.Data["MaxCreationLimit"] = ctx.User.MaxCreationLimit()
|
||||||
|
|
||||||
ctxUser := checkContextUser(ctx, form.UID)
|
ctxUser := checkContextUser(ctx, form.UID)
|
||||||
if ctx.Written() {
|
if ctx.Written() {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue