File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -374,13 +374,15 @@ class THttpMonLegacyActorRequest : public TActorBootstrapped<THttpMonLegacyActor
374
374
return ReplyErrorAndPassAway (result);
375
375
}
376
376
bool found = false ;
377
- for (const TString& sid : ActorMonPage->AllowedSIDs ) {
378
- if (result.UserToken ->IsExist (sid)) {
379
- found = true ;
380
- break ;
377
+ if (result.UserToken ) {
378
+ for (const TString& sid : ActorMonPage->AllowedSIDs ) {
379
+ if (result.UserToken ->IsExist (sid)) {
380
+ found = true ;
381
+ break ;
382
+ }
381
383
}
382
384
}
383
- if (found || ActorMonPage->AllowedSIDs .empty ()) {
385
+ if (found || ActorMonPage->AllowedSIDs .empty () || !result. UserToken ) {
384
386
SendRequest (&result);
385
387
} else {
386
388
return ReplyForbiddenAndPassAway (" SID is not allowed" );
You can’t perform that action at this time.
0 commit comments