diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2021-11-25 06:03:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 13:03:03 +0800 |
commit | e0f81b4ef445948d33abcd5c67b6d0786b07de68 (patch) | |
tree | d496e7eae50d45dd442bbc4d93b6d22a4fe23b30 /models/repo.go | |
parent | 4b4997c73e63effef932d9647ad0eb204eb39973 (diff) | |
download | gitea-e0f81b4ef445948d33abcd5c67b6d0786b07de68.tar.gz gitea-e0f81b4ef445948d33abcd5c67b6d0786b07de68.zip |
Allow forks to org if you can create repos (#17783)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index bf5c160297..4cf3be6aa3 100644 --- a/models/repo.go +++ b/models/repo.go @@ -766,7 +766,7 @@ func CanUserForkRepo(user *user_model.User, repo *Repository) (bool, error) { if repo.OwnerID != user.ID && !HasForkedRepo(user.ID, repo.ID) { return true, nil } - ownedOrgs, err := GetOwnedOrgsByUserID(user.ID) + ownedOrgs, err := GetOrgsCanCreateRepoByUserID(user.ID) if err != nil { return false, err } |