summaryrefslogtreecommitdiffstats
path: root/models/access.go
diff options
context:
space:
mode:
authorPeter Smit <peter@smitmail.eu>2015-02-04 16:08:55 +0200
committerPeter Smit <peter@smitmail.eu>2015-02-04 16:08:55 +0200
commitfd1df86c44bfbd13b4df0a66840113b0d18695bc (patch)
treea3fd5b78379b97827d9747d70510beabe2851e1d /models/access.go
parentbef38d9d3f01bf04404aa97d5528ff046da38950 (diff)
downloadgitea-fd1df86c44bfbd13b4df0a66840113b0d18695bc.tar.gz
gitea-fd1df86c44bfbd13b4df0a66840113b0d18695bc.zip
Fix dashboard issue after collaboration migration
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
}