forked from TrueCloudLab/frostfs-node
[#525] ir/container: Write session token on eACL table approval
Approved eACL table should be stored in sidechain along with related session token. Forward session token from `SetEACL` event to `Wrapper.PutEACL` method. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
db7312274c
commit
4ef369732a
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func (cp *Processor) checkEACLOwnership(binTable []byte, key *keys.PublicKey) er
|
|||
}
|
||||
|
||||
func (cp *Processor) approveSetEACL(e container.SetEACL) {
|
||||
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature(), nil)
|
||||
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature(), e.SessionToken())
|
||||
if err != nil {
|
||||
cp.log.Error("could not approve set EACL",
|
||||
zap.String("error", err.Error()),
|
||||
|
|
Loading…
Reference in a new issue