From f96bde1abb3c4fa95628550b49628552f2c89a1a Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Fri, 31 Mar 2017 14:36:20 +0800 Subject: [PATCH] Do not return 403 for HEAD --- src/ui/api/project.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ui/api/project.go b/src/ui/api/project.go index b28e90600..0c7774f89 100644 --- a/src/ui/api/project.go +++ b/src/ui/api/project.go @@ -140,14 +140,10 @@ func (p *ProjectAPI) Head() { return } - userID := p.ValidateUser() + _ = p.ValidateUser() if project == nil { p.CustomAbort(http.StatusNotFound, http.StatusText(http.StatusNotFound)) } - - if !checkProjectPermission(userID, project.ProjectID) { - p.CustomAbort(http.StatusForbidden, http.StatusText(http.StatusForbidden)) - } } // Get ...