]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: system users override elasticsearch permission filter
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 3 May 2017 22:10:01 +0000 (15:10 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 30 May 2017 20:26:59 +0000 (13:26 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_es_rest.cc

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