Browse Source

fix permission check in put request (#6142)

pull/6144/head
Guang Jiong Lou 2 months ago
committed by GitHub
parent
commit
54b91ba2b2
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      weed/server/filer_server_handlers_write_autochunk.go

2
weed/server/filer_server_handlers_write_autochunk.go

@ -126,7 +126,7 @@ func (fs *FilerServer) doPutAutoChunk(ctx context.Context, w http.ResponseWriter
contentType = "" contentType = ""
} }
if err := fs.checkPermissions(ctx, r, ""); err != nil {
if err := fs.checkPermissions(ctx, r, fileName); err != nil {
return nil, nil, err return nil, nil, err
} }

Loading…
Cancel
Save