forked from TrueCloudLab/frostfs-node
[#203] Make eACL not found
error public
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
400b65801d
commit
8cedb93cea
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var errEACLNotFound = errors.New("extended ACL table is not set for this container")
|
||||
var ErrEACLNotFound = errors.New("extended ACL table is not set for this container")
|
||||
|
||||
// GetEACL reads the extended ACL table from NeoFS system
|
||||
// through Container contract call.
|
||||
|
@ -34,7 +34,7 @@ func (w *Wrapper) GetEACL(cid *container.ID) (*eacl.Table, []byte, error) {
|
|||
// since unsigned table cannot be approved in the storage by design.
|
||||
sig := rpcAnswer.Signature()
|
||||
if len(sig) == 0 {
|
||||
return nil, nil, errEACLNotFound
|
||||
return nil, nil, ErrEACLNotFound
|
||||
}
|
||||
|
||||
table := eacl.NewTable()
|
||||
|
|
Loading…
Reference in a new issue