summaryrefslogtreecommitdiffstats
path: root/services/repository/review.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/repository/review.go')
-rw-r--r--services/repository/review.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/review.go b/services/repository/review.go
index d30d61ee06..6b5f096053 100644
--- a/services/repository/review.go
+++ b/services/repository/review.go
@@ -12,7 +12,7 @@ import (
// GetReviewerTeams get all teams can be requested to review
func GetReviewerTeams(repo *repo_model.Repository) ([]*organization.Team, error) {
- if err := repo.GetOwner(db.DefaultContext); err != nil {
+ if err := repo.LoadOwner(db.DefaultContext); err != nil {
return nil, err
}
if !repo.Owner.IsOrganization() {