]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_rest_client.cc
update sources to v12.2.1
[ceph.git] / ceph / src / rgw / rgw_rest_client.cc
index fb61f326bd2f87d33d18b8972ebacac4b124fed7..22bbfe80f363fed7245dcdc3b856671be04d2aee 100644 (file)
@@ -391,7 +391,7 @@ struct grant_type_to_header grants_headers_def[] = {
 
 static bool grants_by_type_check_perm(map<int, string>& grants_by_type, int perm, ACLGrant& grant, int check_perm)
 {
-  if ((perm & check_perm) == perm) {
+  if ((perm & check_perm) == check_perm) {
     grants_by_type_add_one_grant(grants_by_type, check_perm, grant);
     return true;
   }