Browse Source

fix #1953

for-closed-social
Unknwon 9 years ago
parent
commit
4d3138cd10
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      models/access.go

+ 4
- 0
models/access.go 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)

Loading…
Cancel
Save