0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 09:44:16 +01:00
This commit is contained in:
Unknwon 2015-11-15 14:55:12 -05:00
parent 942284648e
commit 4d3138cd10

View file

@ -101,6 +101,10 @@ func (u *User) GetAccessibleRepositories() ([]*Repository, error) {
return nil, err
}
if len(accesses) == 0 {
return []*Repository{}, nil
}
repoIDs := make([]int64, 0, len(accesses))
for _, access := range accesses {
repoIDs = append(repoIDs, access.RepoID)