diff --git a/models/repo_permission.go b/models/repo_permission.go index 94475b7a1d0b3..4f043a58ccfae 100644 --- a/models/repo_permission.go +++ b/models/repo_permission.go @@ -177,7 +177,7 @@ func getUserRepoPermission(e Engine, repo *Repository, user *User) (perm Permiss } // Prevent strangers from checking out public repo of private orginization/users - // Allow user if they are collaborator of a repo within a private user or a private orginization but not a member of the orginization itself + // Allow user if they are collaborator of a repo within a private user or a private organization but not a member of the organization itself if !hasOrgOrUserVisible(e, repo.Owner, user) && !isCollaborator { perm.AccessMode = AccessModeNone return