]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: cleanup for RGWDeleteObj::verify_permission() 25278/head
authorEnming.Zhang <zvampirem77@gmail.com>
Tue, 27 Nov 2018 11:41:56 +0000 (06:41 -0500)
committerEnming.Zhang <zvampirem77@gmail.com>
Tue, 27 Nov 2018 11:41:56 +0000 (06:41 -0500)
commit86334645cf96c03515d30804e2df0bdf22916fb5
tree46d571a5ba8787af154f395d475252af4ddcf197
parent84879e915eb3f01b453aa2138cd44c09925e7cd1
rgw: cleanup for RGWDeleteObj::verify_permission()

- if the 'Effect' field of user policy and bucket policy
  is set to 'Allow', RGWDeleteObj::verify_permission()
  should return 0 instead of true;

- as the same with bucket policy, if the 'Effect' field
  of user policy is set to 'Deny', RGWDeleteObj::verify_permission()
  should return -EACCES instead of false;

Signed-off-by: Enming.Zhang <zvampirem77@gmail.com>
src/rgw/rgw_op.cc