diff options
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/pull.go | 2 | ||||
-rw-r--r-- | routers/repo/repo.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index bc958bdda1..389fcb0898 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -94,7 +94,7 @@ func ForkPost(ctx *context.Context, form auth.CreateRepoForm) { return } - ctxUser := checkContextUser(ctx, form.Uid) + ctxUser := checkContextUser(ctx, form.UID) if ctx.Written() { return } diff --git a/routers/repo/repo.go b/routers/repo/repo.go index df1c3feb4c..fa111d5e4a 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -112,7 +112,7 @@ func CreatePost(ctx *context.Context, form auth.CreateRepoForm) { ctx.Data["Licenses"] = models.Licenses ctx.Data["Readmes"] = models.Readmes - ctxUser := checkContextUser(ctx, form.Uid) + ctxUser := checkContextUser(ctx, form.UID) if ctx.Written() { return } @@ -167,7 +167,7 @@ func Migrate(ctx *context.Context) { func MigratePost(ctx *context.Context, form auth.MigrateRepoForm) { ctx.Data["Title"] = ctx.Tr("new_migrate") - ctxUser := checkContextUser(ctx, form.Uid) + ctxUser := checkContextUser(ctx, form.UID) if ctx.Written() { return } |