diff options
author | Unknwon <u@gogs.io> | 2017-02-23 16:15:25 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-23 16:15:25 -0500 |
commit | b78e03934d057bdb4c628fefb364dda6eb1f260a (patch) | |
tree | 79fe27f1a575f088a45b658709dac1f07eb0e9fc /routers/user/home.go | |
parent | 3c0d162961d3704c5a98f0f0606fbb95971db358 (diff) |
models/access: hasAccess only need userID not user object
Diffstat (limited to 'routers/user/home.go')
-rw-r--r-- | routers/user/home.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index f413a223..cb85bd8f 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -293,7 +293,7 @@ func Issues(ctx *context.Context) { } // Check if user has access to given repository. - if !repo.IsOwnedBy(ctxUser.ID) && !repo.HasAccess(ctxUser) { + if !repo.IsOwnedBy(ctxUser.ID) && !repo.HasAccess(ctxUser.ID) { ctx.Handle(404, "Issues", fmt.Errorf("#%d", repoID)) return } |