]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/auth: fix copy&paste bug in RoleApplier::is_owner_of 37534/head
authorYuval Lifshitz <ylifshit@redhat.com>
Sun, 4 Oct 2020 09:21:26 +0000 (12:21 +0300)
committerYuval Lifshitz <ylifshit@redhat.com>
Mon, 5 Oct 2020 05:02:26 +0000 (08:02 +0300)
issue was detected by pvs-studio static analyzer

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/rgw_auth.h

index 0ede174e014911cd8ce4f8793ad5f3abb43fa0c9..d554f985aca44e76960e70af5c2a19d7fc0d3149 100644 (file)
@@ -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 {