Skip to content

Commit 8d72631

Browse files
committed
Fixed typo's
1 parent a2e79d8 commit 8d72631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/repo_list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func accessibleRepositoryCondition(user *user_model.User, unitType unit.Type) bu
607607
}
608608

609609
if user != nil {
610-
// 2. Be able to see all repositories that we have access to
610+
// 2. Be able to see all repositories that we have direct access to
611611
// 3. Be able to see all repositories through team membership(s)
612612
if unitType == unit.TypeInvalid {
613613
// Regardless of UnitType
@@ -618,7 +618,7 @@ func accessibleRepositoryCondition(user *user_model.User, unitType unit.Type) bu
618618
} else {
619619
// For a specific UnitType
620620
cond = cond.Or(
621-
userAccessRepoCond("`repository`.id", user.ID),
621+
userCollaborationRepoCond("`repository`.id", user.ID),
622622
userOrgTeamUnitRepoCond("`repository`.id", user.ID, unitType),
623623
)
624624
}
@@ -672,7 +672,7 @@ func AccessibleRepoIDsQuery(user *user_model.User) *builder.Builder {
672672
return builder.Select("id").From("repository").Where(accessibleRepositoryCondition(user, unit.TypeInvalid))
673673
}
674674

675-
// FindUserCodeAccessibleRepoIDs find all accessible repositories' ID by user's id
675+
// FindUserCodeAccessibleRepoIDs finds all at Code level accessible repositories' ID by the user's id
676676
func FindUserCodeAccessibleRepoIDs(user *user_model.User) ([]int64, error) {
677677
repoIDs := make([]int64, 0, 10)
678678
if err := db.GetEngine(db.DefaultContext).

0 commit comments

Comments
 (0)