]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
drop eval_existing_objtags
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 18 Aug 2017 16:28:21 +0000 (18:28 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 22 Jan 2018 13:47:33 +0000 (14:47 +0100)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_op.cc

index 3db1e3fb2d8499d186d12c43b429831e210fdaff..11ee79006d6ff4538190756f671132b171091cfb 100644 (file)
@@ -603,18 +603,6 @@ static int rgw_iam_add_existing_objtags(RGWRados* store, struct req_state* s, rg
   return 0;
 }
 
-static int rgw_iam_eval_existing_objtags(RGWRados* store, struct req_state* s, rgw_obj& obj, std::uint64_t action){
-  int op_ret = rgw_iam_add_existing_objtags(store, s, obj, action);
-  if (op_ret < 0)
-    return op_ret;
-  auto e = s->iam_policy->eval(s->env, *s->auth.identity, action, obj);
-  if (e == Effect::Deny)
-    return -EACCES;
-
-  return 0;
-
-}
-
 rgw::IAM::Environment rgw_build_iam_environment(RGWRados* store,
                                                struct req_state* s)
 {