From: Jiaying Ren Date: Tue, 7 Mar 2017 03:47:23 +0000 (+0800) Subject: rgw: fix RGWGetLC Op capacity from write to read X-Git-Tag: v12.0.1~27^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d595e3b5ea5a35137d8b5f38c9a4c70568edccd5;p=ceph.git rgw: fix RGWGetLC Op capacity from write to read Signed-off-by: Jiaying Ren --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 8c1eaf92411..33200475fed 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -4087,7 +4087,7 @@ int RGWPutACLs::verify_permission() int RGWGetLC::verify_permission() { bool perm; - perm = verify_bucket_permission(s, RGW_PERM_WRITE_ACP); + perm = verify_bucket_permission(s, RGW_PERM_READ_ACP); if (!perm) return -EACCES; diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index 4d7c5af0b15..a6eff0e710d 100644 --- a/src/rgw/rgw_op.h +++ b/src/rgw/rgw_op.h @@ -1103,7 +1103,7 @@ public: void send_response() override = 0; const string name() override { return "get_lifecycle"; } - uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; } + uint32_t op_mask() override { return RGW_OP_TYPE_READ; } }; class RGWPutLC : public RGWOp {