]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: es: fix system user check
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 25 May 2017 23:53:22 +0000 (16:53 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 30 May 2017 20:27:00 +0000 (13:27 -0700)
check was inverted

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_es_rest.cc

index 2652a22d9811949a34e88674967308f597f694d5..eb517761eccd1e7b372229477aa4a83e83bdad50 100644 (file)
@@ -161,7 +161,7 @@ void RGWMetadataSearchOp::execute()
 
   list<pair<string, string> > conds;
 
-  if (s->user->system) {
+  if (!s->user->system) {
     conds.push_back(make_pair("permissions", s->user->user_id.to_str()));
   }