fix permission check in put request (#6142)

This commit is contained in:
Guang Jiong Lou 2024-10-18 22:00:45 +08:00 committed by GitHub
parent 1e13b6879c
commit 54b91ba2b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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