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