File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -142,15 +142,17 @@ func (s *server) handleBatch(w http.ResponseWriter, r *http.Request) {
142
142
return
143
143
}
144
144
145
- if err = auth .CheckRepoOwner (userInRepo ); req .Operation == "upload" || err != nil {
145
+ if err = auth .CheckRepoOwner (userInRepo ); req .Operation == "upload" || ( err != nil && strings . HasPrefix ( err . Error (), "not_found" )) {
146
146
err := s .dealWithAuthError (userInRepo , w , r )
147
147
if err != nil {
148
148
return
149
149
}
150
+ } else if err != nil {
151
+ return
152
+ } else {
153
+ resp := s .handleRequestObject (req )
154
+ must (json .NewEncoder (w ).Encode (resp ))
150
155
}
151
-
152
- resp := s .handleRequestObject (req )
153
- must (json .NewEncoder (w ).Encode (resp ))
154
156
}
155
157
156
158
func (s * server ) handleRequestObject (req batch.Request ) batch.Response {
You can’t perform that action at this time.
0 commit comments