Skip to content

Commit

Permalink
[ratelimiter] fix not_allowed message if no admins on cluster in conf… (
Browse files Browse the repository at this point in the history
  • Loading branch information
shmel1k authored Mar 7, 2024
1 parent 0378eff commit 4192b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/grpc_services/rpc_rate_limiter_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class TRateLimiterRequest : public TRpcOperationRequestActor<TDerived, TRequest>
if (resource.has_metering_config()) {
auto self = static_cast<TDerived*>(this);
const auto& userTokenStr = self->Request_->GetSerializedToken();
bool allowed = false;
bool allowed = AppData()->AdministrationAllowedSIDs.empty();
if (userTokenStr) {
NACLib::TUserToken userToken(userTokenStr);
for (auto &sid : AppData()->AdministrationAllowedSIDs) {
Expand Down

0 comments on commit 4192b14

Please sign in to comment.