mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:59:31 +01:00
fix #1953
This commit is contained in:
parent
942284648e
commit
4d3138cd10
1 changed files with 4 additions and 0 deletions
|
@ -101,6 +101,10 @@ func (u *User) GetAccessibleRepositories() ([]*Repository, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(accesses) == 0 {
|
||||||
|
return []*Repository{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
repoIDs := make([]int64, 0, len(accesses))
|
repoIDs := make([]int64, 0, len(accesses))
|
||||||
for _, access := range accesses {
|
for _, access := range accesses {
|
||||||
repoIDs = append(repoIDs, access.RepoID)
|
repoIDs = append(repoIDs, access.RepoID)
|
||||||
|
|
Loading…
Reference in a new issue