[#510] treesvc: Fix panic in bearer token processing

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-07-12 10:21:35 +03:00 committed by Evgenii Stratonikov
parent 24eb988897
commit b8bcfac531

View file

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