forked from TrueCloudLab/frostfs-rest-gw
[#68] Check basic ACL size
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
47691727d4
commit
09e8196ed4
2 changed files with 41 additions and 2 deletions
|
@ -355,8 +355,8 @@ func createContainer(ctx context.Context, p *pool.Pool, stoken session.Container
|
|||
request.BasicACL = defaultBasicACL
|
||||
}
|
||||
|
||||
var basicACL acl.Basic
|
||||
if err = basicACL.DecodeString(request.BasicACL); err != nil {
|
||||
basicACL, err := decodeBasicACL(request.BasicACL)
|
||||
if err != nil {
|
||||
return cid.ID{}, fmt.Errorf("couldn't parse basic acl: %w", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue