Allow forks to org if you can create repos (#17783)

This commit is contained in:
qwerty287 authored and GitHub committed 2021-11-25 13:03:03 +08:00
1 parent 4b4997c73e
commit e0f81b4ef4
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -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
}