Skip to content

Commit 06fbdd5

Browse files
authored
Update models/repo_permission.go
1 parent 79770b5 commit 06fbdd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo_permission.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func getUserRepoPermission(e Engine, repo *Repository, user *User) (perm Permiss
177177
}
178178

179179
// Prevent strangers from checking out public repo of private orginization/users
180-
// 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
180+
// 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
181181
if !hasOrgOrUserVisible(e, repo.Owner, user) && !isCollaborator {
182182
perm.AccessMode = AccessModeNone
183183
return

0 commit comments

Comments
 (0)