aboutsummaryrefslogtreecommitdiffstats
path: root/modules/convert/repository.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/convert/repository.go')
-rw-r--r--modules/convert/repository.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/repository.go b/modules/convert/repository.go
index 63a22bb04e..9a4fbb97ca 100644
--- a/modules/convert/repository.go
+++ b/modules/convert/repository.go
@@ -102,7 +102,7 @@ func innerToRepo(repo *models.Repository, mode models.AccessMode, isParent bool)
return &api.Repository{
ID: repo.ID,
- Owner: ToUser(repo.Owner, mode != models.AccessModeNone, mode >= models.AccessModeAdmin),
+ Owner: ToUserWithAccessMode(repo.Owner, mode),
Name: repo.Name,
FullName: repo.FullName(),
Description: repo.Description,