rgw: fix indentation in RGWPostObj_ObjStore_S3::get_policy().

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
Radoslaw Zarzynski 2017-01-05 14:51:08 +01:00
parent fa02054684
commit 0dadcbcdfb

View File

@ -1860,26 +1860,26 @@ int RGWPostObj_ObjStore_S3::get_policy()
} }
s->perm_mask = RGW_PERM_FULL_CONTROL; s->perm_mask = RGW_PERM_FULL_CONTROL;
} }
} else if (ldap.is_applicable()) { } else if (ldap.is_applicable()) {
try { try {
auto applier = ldap.authenticate(); auto applier = ldap.authenticate();
if (! applier) { if (! applier) {
return -EACCES; return -EACCES;
} }
try { try {
applier->load_acct_info(*s->user); applier->load_acct_info(*s->user);
s->perm_mask = applier->get_perm_mask(); s->perm_mask = applier->get_perm_mask();
applier->modify_request_state(s); applier->modify_request_state(s);
s->auth_identity = std::move(applier); s->auth_identity = std::move(applier);
} catch (int err) { } catch (int err) {
return -EACCES; return -EACCES;
} }
} catch (int err) { } catch (int err) {
return -EACCES; return -EACCES;
} }
} else { } else {
return -EACCES; return -EACCES;
} }
} else { } else {
map<string, RGWAccessKey> access_keys = user_info.access_keys; map<string, RGWAccessKey> access_keys = user_info.access_keys;