diff options
author | Unknwon <u@gogs.io> | 2016-03-05 20:45:23 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-05 20:45:23 -0500 |
commit | a5b0400be7c8868b685403e0718bdd66149c3e84 (patch) | |
tree | 6db3f4999fa43e0b8a384ca4da8885aa00a4de8f /routers/repo/pull.go | |
parent | 045f14fbd0e3553521f5092cf839be363c74a090 (diff) | |
download | gitea-a5b0400be7c8868b685403e0718bdd66149c3e84.tar.gz gitea-a5b0400be7c8868b685403e0718bdd66149c3e84.zip |
#1146 finish new access rights for collaborators
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index a5eec2a5bd..c9d92297f6 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -490,7 +490,7 @@ func ParseCompareInfo(ctx *middleware.Context) (*models.User, *models.Repository } } - if !ctx.User.CanWriteTo(headRepo) && !ctx.User.IsAdmin { + if !ctx.User.IsWriterOfRepo(headRepo) && !ctx.User.IsAdmin { log.Trace("ParseCompareInfo[%d]: does not have write access or site admin", baseRepo.ID) ctx.Handle(404, "ParseCompareInfo", nil) return nil, nil, nil, nil, "", "" |