rbac12 - add missing code for key auths

This commit is contained in:
sierra19XX 2020-06-23 16:14:00 +00:00
parent 3f9965b213
commit e9f31f03d5

View file

@ -1904,7 +1904,15 @@ set<public_key_type> database_api_impl::get_potential_signatures( const signed_t
return &auth;
},
[&]( account_id_type id, const operation& op ) {
return _db.get_account_custom_authorities(id, op);
vector<authority> custom_auths = _db.get_account_custom_authorities(id, op);
for (const auto& cauth: custom_auths)
{
for (const auto& k : cauth.get_keys())
{
result.insert(k);
}
}
return custom_auths;
},
_db.get_global_properties().parameters.max_authority_depth
);