diff options
author | Unknwon <u@gogs.io> | 2015-08-19 20:08:57 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 20:08:57 +0800 |
commit | 1453e91f419e52fc74e3ec51b47a080a27a33342 (patch) | |
tree | e8bb9e381999b6a8a09685af003ed7580da2a116 /models/access.go | |
parent | 2b393f5b039db177a58be03f1c5c746eac501686 (diff) | |
download | gitea-1453e91f419e52fc74e3ec51b47a080a27a33342.tar.gz gitea-1453e91f419e52fc74e3ec51b47a080a27a33342.zip |
minor fix on API response
Diffstat (limited to 'models/access.go')
-rw-r--r-- | models/access.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/access.go b/models/access.go index 8d698f151d..917f1c280d 100644 --- a/models/access.go +++ b/models/access.go @@ -68,7 +68,7 @@ func HasAccess(u *User, repo *Repository, testMode AccessMode) (bool, error) { } // GetAccessibleRepositories finds all repositories where a user has access to, -// besides his own. +// besides he/she owns. func (u *User) GetAccessibleRepositories() (map[*Repository]AccessMode, error) { accesses := make([]*Access, 0, 10) if err := x.Find(&accesses, &Access{UserID: u.Id}); err != nil { |