object: Introduce soft ape checks #986
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ func (s *Service) verifyClient(req message, cid cidSDK.ID, rawBearer []byte, op
|
||||||
}
|
}
|
||||||
|
|
||||||
basicACL := cnr.Value.BasicACL()
|
basicACL := cnr.Value.BasicACL()
|
||||||
|
// Basic ACL mask can be unset, if a container operations are performed
|
||||||
|
// with strict APE checks only.
|
||||||
|
if basicACL == 0x0 {
|
||||||
|
|||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
if !basicACL.IsOpAllowed(op, role) {
|
if !basicACL.IsOpAllowed(op, role) {
|
||||||
return basicACLErr(op)
|
return basicACLErr(op)
|
||||||
|
|
Loading…
Add table
Reference in a new issue
@dkirillov
Since, basic acl checks are skipped in tree service if the mask is unset