[#510] treesvc: Fix panic in bearer token processing
ci/woodpecker/pr/pre-commit Pipeline failed Details
Tests and linters / Lint (pull_request) Successful in 2m33s Details
Tests and linters / Tests (1.19) (pull_request) Successful in 2m49s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 4m32s Details
Tests and linters / Tests with -race (pull_request) Successful in 5m5s Details
Build / Build Components (1.19) (pull_request) Successful in 3m45s Details
Build / Build Components (1.20) (pull_request) Successful in 3m32s Details
Tests and linters / Staticcheck (pull_request) Successful in 10m14s Details

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/510/head
Evgenii Stratonikov 2023-07-12 10:21:35 +03:00
parent 7da284f3e8
commit aa935a4c40
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func (s *Service) verifyClient(req message, cid cidSDK.ID, rawBearer []byte, op
}
tb = *tbCore.Value
if bt.Impersonate() {
if tableFromBearer && bt.Impersonate() {
signer = bt.SigningKeyBytes()
}
}