Merge remote-tracking branch 'upstream/dev' into dev-sync

This commit is contained in:
kunw 2017-03-31 18:50:47 +08:00
commit 04b1900c64

View File

@ -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 ...