diff options
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index d44f4ba489..eac0f015f0 100644 --- a/models/repo.go +++ b/models/repo.go @@ -531,7 +531,7 @@ func (repo *Repository) ComposeCompareURL(oldCommitID, newCommitID string) strin // HasAccess returns true when user has access to this repository func (repo *Repository) HasAccess(u *User) bool { - has, _ := HasAccess(u, repo, AccessModeRead) + has, _ := HasAccess(u.ID, repo, AccessModeRead) return has } |