From 8347a2e3a1cd4ffa4b70fe060ef77533447254da Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Sun, 4 Oct 2020 12:21:26 +0300 Subject: [PATCH] rgw/auth: fix copy&paste bug in RoleApplier::is_owner_of issue was detected by pvs-studio static analyzer Signed-off-by: Yuval Lifshitz --- src/rgw/rgw_auth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_auth.h b/src/rgw/rgw_auth.h index 0ede174e0149..d554f985aca4 100644 --- a/src/rgw/rgw_auth.h +++ b/src/rgw/rgw_auth.h @@ -671,7 +671,7 @@ public: return false; } bool is_owner_of(const rgw_user& uid) const override { - return (this->user_id.id == uid.id && this->user_id.tenant == uid.tenant && this->user_id.ns == this->user_id.ns); + return (this->user_id.id == uid.id && this->user_id.tenant == uid.tenant && this->user_id.ns == uid.ns); } bool is_identity(const idset_t& ids) const override; uint32_t get_perm_mask() const override { -- 2.47.3