Skip to content

Commit 679c192

Browse files
committed
fix comments
1 parent eb49323 commit 679c192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/repo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ func (repo *Repository) getReviewers(e Engine, doerID, posterID int64) ([]*User,
593593
}
594594

595595
// This is a "public" repository:
596-
// Any user that has write access, is a watcher or organization member can be requested to review
596+
// Any user that has read access, is a watcher or organization member can be requested to review
597597
if err := e.
598598
SQL("SELECT * FROM `user` WHERE id IN ( "+
599599
"SELECT user_id FROM `access` WHERE repo_id = ? AND mode >= ? "+
@@ -615,7 +615,7 @@ func (repo *Repository) getReviewers(e Engine, doerID, posterID int64) ([]*User,
615615

616616
// GetReviewers get all users can be requested to review:
617617
// * for private repositories this returns all users that have read access or higher to the repository.
618-
// * for public repositories this returns all users that have write access or higher to the repository,
618+
// * for public repositories this returns all users that have read access or higher to the repository,
619619
// all repo watchers and all organization members.
620620
// TODO: may be we should hava a busy choice for users to block review request to them.
621621
func (repo *Repository) GetReviewers(doerID, posterID int64) ([]*User, error) {

0 commit comments

Comments
 (0)