From eb5336d5ff53f764edee4fcbd10e738db506a0e6 Mon Sep 17 00:00:00 2001
From: Airat Arifullin <a.arifullin@yadro.com>
Date: Tue, 22 Oct 2024 15:47:15 +0300
Subject: [PATCH] [#1406] tree: Use delete verb instead put for Remove

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
---
 pkg/services/tree/service.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/services/tree/service.go b/pkg/services/tree/service.go
index acc2775e6..10c3b6ccc 100644
--- a/pkg/services/tree/service.go
+++ b/pkg/services/tree/service.go
@@ -210,7 +210,7 @@ func (s *Service) Remove(ctx context.Context, req *RemoveRequest) (*RemoveRespon
 		return nil, err
 	}
 
-	err := s.verifyClient(ctx, req, cid, b.GetBearerToken(), acl.OpObjectPut)
+	err := s.verifyClient(ctx, req, cid, b.GetBearerToken(), acl.OpObjectDelete)
 	if err != nil {
 		return nil, err
 	}