mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-21 00:20:50 +00:00
Mirror fix and fix #481
This commit is contained in:
parent
c03f5a2c7c
commit
8a09256941
8 changed files with 17 additions and 15 deletions
|
@ -656,7 +656,7 @@ func TransferOwnership(u *User, newOwner string, repo *Repository) error {
|
|||
}
|
||||
|
||||
// Check if new owner has repository with same name.
|
||||
has, err := IsRepositoryExist(u, repo.Name)
|
||||
has, err := IsRepositoryExist(newUser, repo.Name)
|
||||
if err != nil {
|
||||
return err
|
||||
} else if has {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue