diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-04 16:08:55 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-04 16:08:55 +0200 |
commit | fd1df86c44bfbd13b4df0a66840113b0d18695bc (patch) | |
tree | a3fd5b78379b97827d9747d70510beabe2851e1d /models/access.go | |
parent | bef38d9d3f01bf04404aa97d5528ff046da38950 (diff) | |
download | gitea-fd1df86c44bfbd13b4df0a66840113b0d18695bc.tar.gz gitea-fd1df86c44bfbd13b4df0a66840113b0d18695bc.zip |
Fix dashboard issue after collaboration migration
Diffstat (limited to 'models/access.go')
-rw-r--r-- | models/access.go | 4 |
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 } |