Add ability to fork your own repos (#761)
This commit is contained in:
parent
d1b5498cc0
commit
e08421017c
23 changed files with 1 additions and 28 deletions
|
@ -109,12 +109,6 @@ func ForkPost(ctx *context.Context, form auth.CreateRepoForm) {
|
|||
return
|
||||
}
|
||||
|
||||
repo, has := models.HasForkedRepo(ctxUser.ID, forkRepo.ID)
|
||||
if has {
|
||||
ctx.Redirect(setting.AppSubURL + "/" + ctxUser.Name + "/" + repo.Name)
|
||||
return
|
||||
}
|
||||
|
||||
// Check ownership of organization.
|
||||
if ctxUser.IsOrganization() {
|
||||
if !ctxUser.IsOwnedBy(ctx.User.ID) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue