diff --git a/models/repo.go b/models/repo.go index 05207fed1..6d73aa28a 100755 --- a/models/repo.go +++ b/models/repo.go @@ -671,7 +671,7 @@ func (repo *Repository) getReviewersPublic(e Engine, doerID, posterID int64) (_ if err = e. SQL(SQLCmd, - repo.ID, AccessModeRead, doerID, posterID). + repo.ID, AccessModeWrite, doerID, posterID). Find(&users); err != nil { return nil, err }