aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-22 13:01:42 -0500
committerUnknwon <u@gogs.io>2015-11-22 13:01:42 -0500
commitb2fb7e3fd27f360e65ee60b93cad7d5d9832f818 (patch)
tree79b4a47b1f18c3b9a6f871d0262af6c71f82b4fc /routers/repo
parentefaf60ba5a4a7c0954dbaf57203859db3258281f (diff)
downloadgitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.tar.gz
gitea-b2fb7e3fd27f360e65ee60b93cad7d5d9832f818.zip
more HTTP clone word fix
Diffstat (limited to 'routers/repo')
-rw-r--r--routers/repo/pull.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index ee66da73b0..d7b4828a91 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -448,7 +448,7 @@ func ParseCompareInfo(ctx *middleware.Context) (*models.User, *models.Repository
// Check if current user has fork of repository.
headRepo, has := models.HasForkedRepo(headUser.Id, repo.ID)
- if !has || !ctx.User.IsAdminOfRepo(headRepo) {
+ if !has || (!ctx.User.IsAdminOfRepo(headRepo) && !ctx.User.IsAdmin) {
ctx.Handle(404, "HasForkedRepo", nil)
return nil, nil, nil, nil, "", ""
}