more HTTP clone word fix
This commit is contained in:
parent
efaf60ba5a
commit
b2fb7e3fd2
4 changed files with 5 additions and 5 deletions
|
@ -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, "", ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue