{
switch (group) {
case ACL_GROUP_ALL_USERS:
- return (id.compare(rgw_uri_all_users) == 0);
+ return (id.compare(RGW_USER_ANON_ID) == 0);
case ACL_GROUP_AUTHENTICATED_USERS:
return (id.compare(rgw_uri_auth_users) == 0);
default:
#include "rgw_rest.h"
#include "rgw_acl.h"
#include "rgw_acl_s3.h"
+#include "rgw_acl_swift.h"
#include "rgw_user.h"
#include "rgw_bucket.h"
#include "rgw_log.h"
}
}
- s->bucket_acl = new RGWAccessControlPolicy(s->cct);
+ if(s->dialect.compare("s3") == 0) {
+ s->bucket_acl = new RGWAccessControlPolicy_S3(s->cct);
+ } else if(s->dialect.compare("swift") == 0) {
+ s->bucket_acl = new RGWAccessControlPolicy_SWIFT(s->cct);
+ } else {
+ s->bucket_acl = new RGWAccessControlPolicy(s->cct);
+ }
if (s->copy_source) { /* check if copy source is within the current domain */
const char *src = s->copy_source;