mirror of https://github.com/gogs/gogs.git
parent
1a04da864f
commit
f191bff0b9
|
@ -220,6 +220,9 @@ func Migrate(ctx *context.APIContext, f form.MigrateRepo) {
|
|||
ctx.Error(500, "GetUserByID", err)
|
||||
}
|
||||
return
|
||||
} else if !org.IsOrganization() {
|
||||
ctx.Error(403, "", err)
|
||||
return
|
||||
}
|
||||
ctxUser = org
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue