cql3: Use authenticated_user-specific overload

This prevents us from accidentally accessing a non-existent value.
This commit is contained in:
Jesse Haber-Kucharsky
2018-01-23 14:00:13 -05:00
parent 68ba6a481b
commit 2dc9f00fe3

View File

@@ -109,7 +109,7 @@ cql3::statements::list_users_statement::execute(distributed<service::storage_pro
});
}
return as.get_roles(*user->name).then([&as](std::unordered_set<sstring> granted_roles) {
return auth::get_roles(as, *user).then([&as](std::unordered_set<sstring> granted_roles) {
return make_results(as, std::move(granted_roles));
});
}).finally([user] {});