mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 16:22:15 +00:00
cql3: Use authenticated_user-specific overload
This prevents us from accidentally accessing a non-existent value.
This commit is contained in:
@@ -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] {});
|
||||
|
||||
Reference in New Issue
Block a user