rgw: fix user anonymous permissions

This commit is contained in:
Yehuda Sadeh 2011-06-09 22:05:55 -07:00
parent 4c798752c6
commit c863f52245
2 changed files with 2 additions and 1 deletions

View File

@ -404,7 +404,7 @@ int RGWAccessControlPolicy::get_perm(string& id, int perm_mask) {
}
}
RGW_LOG(5) << "Getting permissions id=" << id << " owner=" << owner << dendl;
RGW_LOG(5) << "Getting permissions id=" << id << " owner=" << owner << " perm=" << perm << dendl;
return perm;
}

View File

@ -579,6 +579,7 @@ bool RGWHandler_REST_S3::authorize(struct req_state *s)
} else {
/* anonymous access */
rgw_get_anon_user(s->user);
s->perm_mask = RGW_PERM_FULL_CONTROL;
return true;
}
} else {