]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: determine owner after effetctive user
authorYehuda Sadeh <yehuda@inktank.com>
Sat, 25 May 2013 02:12:23 +0000 (19:12 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Sat, 25 May 2013 02:12:23 +0000 (19:12 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rest_s3.cc

index 28129f6b8af2fe98e101e3dd0522265c155cf22e..6448b65fff0b85f58889cc0cf0dc90cd987c023d 100644 (file)
@@ -1952,10 +1952,6 @@ int RGW_Auth_S3::authorize(RGWRados *store, struct req_state *s)
     return -EPERM;
   }
 
-  // populate the owner info
-  s->owner.set_id(s->user.user_id);
-  s->owner.set_name(s->user.display_name);
-
   /* now verify signature */
    
   string auth_hdr;
@@ -2019,6 +2015,11 @@ int RGW_Auth_S3::authorize(RGWRados *store, struct req_state *s)
     }
   }
 
+  // populate the owner info
+  s->owner.set_id(s->user.user_id);
+  s->owner.set_name(s->user.display_name);
+
+
   return  0;
 }