mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-01 03:08:02 +08:00
Fix CanCreateRepo check (#15311)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
75dfc46d7c
commit
426ebbfc3b
@ -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…
Reference in New Issue
Block a user