summaryrefslogtreecommitdiffstats
path: root/models/access.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/access.go')
-rw-r--r--models/access.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/access.go b/models/access.go
index 65f1d00323..64bb921409 100644
--- a/models/access.go
+++ b/models/access.go
@@ -93,6 +93,10 @@ func (u *User) GetAccessibleRepositories() (map[*Repository]AccessType, error) {
if err != nil {
return nil, err
}
+ err = repo.GetOwner()
+ if err != nil {
+ return nil, err
+ }
repos[repo] = access.Mode
}