Skip to content

Commit 4192b14

Browse files
authored
[ratelimiter] fix not_allowed message if no admins on cluster in conf… (#2540)
1 parent 0378eff commit 4192b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/grpc_services/rpc_rate_limiter_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class TRateLimiterRequest : public TRpcOperationRequestActor<TDerived, TRequest>
6767
if (resource.has_metering_config()) {
6868
auto self = static_cast<TDerived*>(this);
6969
const auto& userTokenStr = self->Request_->GetSerializedToken();
70-
bool allowed = false;
70+
bool allowed = AppData()->AdministrationAllowedSIDs.empty();
7171
if (userTokenStr) {
7272
NACLib::TUserToken userToken(userTokenStr);
7373
for (auto &sid : AppData()->AdministrationAllowedSIDs) {

0 commit comments

Comments
 (0)