Commit dfb8641
authored
fix: return early after error in impersonateHandler (#1043)
When the user or group lookup fails, the handler was logging/responding
the error but then falling through to the impersonation logic. Adding
an early return prevents the request from continuing with an empty or
invalid identity.
Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>1 parent e699800 commit dfb8641
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
439 | 441 | | |
440 | 442 | | |
441 | 443 | | |
| |||
0 commit comments