]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: cleanup for RGWDeleteObj::verify_permission() 26309/head
authorEnming.Zhang <zvampirem77@gmail.com>
Tue, 27 Nov 2018 11:41:56 +0000 (06:41 -0500)
committerPrashant D <pdhange@redhat.com>
Wed, 6 Feb 2019 23:24:25 +0000 (18:24 -0500)
commitc109060caa0091461d2d91ca4efa731a4142ab30
tree86ea93b0c9beac282d9c3ca4d2e67d6542e10ec0
parentd1d66447a316d74257bbe650257b1b977ab0b03a
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>
(cherry picked from commit 86334645cf96c03515d30804e2df0bdf22916fb5)

Conflicts:
src/rgw/rgw_op.cc : Resolve in verify_permission
src/rgw/rgw_op.cc