[#1103] Fix end of file and trim trailing whitespace

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2024-04-24 15:01:19 +03:00
parent 1f02ac2566
commit 700e891b85
4 changed files with 5 additions and 7 deletions

View file

@ -250,4 +250,4 @@
"stopAll": true "stopAll": true
} }
] ]
} }

View file

@ -67,4 +67,4 @@ Bearer token is generally used for access control but can also affect authentica
## FrostFS ID ## FrostFS ID
## APE ## APE

View file

@ -5,7 +5,7 @@ AddElementTag("smart-contract", $bgColor=#0abab5)
Person(user, "User", "User with private key") Person(user, "User", "User with private key")
Container_Boundary(stor, "FrostFS Storage") { Container_Boundary(stor, "FrostFS Storage") {
Component(verify, "Sign Service", $descr="Check request signature") Component(verify, "Sign Service", $descr="Check request signature")
Component(apesvc, "APE Service") Component(apesvc, "APE Service")
Component(objsvc, "Object service") Component(objsvc, "Object service")
@ -25,4 +25,4 @@ Rel("NeoGo", ffsid, "Fetch users")
Rel("NeoGo", policy, "Fetch policies") Rel("NeoGo", policy, "Fetch policies")
SHOW_LEGEND(true) SHOW_LEGEND(true)
@enduml @enduml

View file

@ -19,9 +19,7 @@ import (
"github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
) )
var ( var subjectNotFoundErrorMessage = "subject not found"
subjectNotFoundErrorMessage = "subject not found"
)
func (s *Service) checkAPE(container *core.Container, cid cid.ID, operation acl.Op, role acl.Role, publicKey *keys.PublicKey) error { func (s *Service) checkAPE(container *core.Container, cid cid.ID, operation acl.Op, role acl.Role, publicKey *keys.PublicKey) error {
namespace := "" namespace := ""