Commit 0a4ab6c
fix(GDB-12688) Treat empty repository ID as “no selection” in JWT auth check
## What:
Update the repository selection guard in jwt-auth.service.js to treat an empty id string as `no repository selected`
## Why:
The method getActiveRepositoryObjectFromStorage() always returns an object (with default {"id":"","location":""}), so the old check if (!getActiveRepositoryObjectFromStorage()) never passed. As a result, GraphQL users without a real repository selected were blocked and saw blank pages.
## How:
Replace the falsy object check with an explicit empty ID check1 parent c99749c commit 0a4ab6c
1 file changed
Lines changed: 1 addition & 2 deletions
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | 428 | | |
430 | 429 | | |
431 | 430 | | |
| |||
0 commit comments