From 54b91ba2b287fd12f55b49c9e78179d6f120ce9e Mon Sep 17 00:00:00 2001 From: Guang Jiong Lou <7991675+27149chen@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:00:45 +0800 Subject: [PATCH] fix permission check in put request (#6142) --- weed/server/filer_server_handlers_write_autochunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index ba0260f04..d68849fe7 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -126,7 +126,7 @@ func (fs *FilerServer) doPutAutoChunk(ctx context.Context, w http.ResponseWriter contentType = "" } - if err := fs.checkPermissions(ctx, r, ""); err != nil { + if err := fs.checkPermissions(ctx, r, fileName); err != nil { return nil, nil, err }