[#510] treesvc: Fix panic in bearer token processing
Some checks failed
ci/woodpecker/pr/pre-commit Pipeline failed
Tests and linters / Lint (pull_request) Successful in 2m33s
Tests and linters / Tests (1.19) (pull_request) Successful in 2m49s
Tests and linters / Tests (1.20) (pull_request) Successful in 4m32s
Tests and linters / Tests with -race (pull_request) Successful in 5m5s
Build / Build Components (1.19) (pull_request) Successful in 3m45s
Build / Build Components (1.20) (pull_request) Successful in 3m32s
Tests and linters / Staticcheck (pull_request) Successful in 10m14s
Some checks failed
ci/woodpecker/pr/pre-commit Pipeline failed
Tests and linters / Lint (pull_request) Successful in 2m33s
Tests and linters / Tests (1.19) (pull_request) Successful in 2m49s
Tests and linters / Tests (1.20) (pull_request) Successful in 4m32s
Tests and linters / Tests with -race (pull_request) Successful in 5m5s
Build / Build Components (1.19) (pull_request) Successful in 3m45s
Build / Build Components (1.20) (pull_request) Successful in 3m32s
Tests and linters / Staticcheck (pull_request) Successful in 10m14s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
7da284f3e8
commit
aa935a4c40
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue