1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 00:45:22 +02:00

Add migrate repo API

This commit is contained in:
Unknwon 2014-08-29 17:31:53 +08:00
parent 8829174574
commit 904bf1a50b
3 changed files with 39 additions and 40 deletions

View file

@ -145,7 +145,7 @@ func MigratePost(ctx *middleware.Context, form auth.MigrateRepoForm) {
// Not equal means current user is an organization.
if form.Uid != ctx.User.Id {
org, err := models.GetUserById(form.Uid)
if err != nil && err != models.ErrUserNotExist {
if err != nil {
ctx.Handle(500, "GetUserById", err)
return
}