Skip to content

Commit

Permalink
Update models/repo_permission.go
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath authored Jun 26, 2021
1 parent 79770b5 commit 06fbdd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06fbdd5

Please sign in to comment.