Commit 788f96a
authored
fix(api): Skip issue mutations without project access (#123108)
If an org doesn't have open team membership on (or generally has no
projects), `get_projects` will return an empty list, and error when we
try to reference projects inside of it. We should just return 204 in
those situations instead.
Fixes SENTRY-5P2G1 parent 690b66a commit 788f96a
2 files changed
Lines changed: 29 additions & 1 deletion
File tree
- src/sentry/issues/endpoints
- tests/sentry/issues/endpoints
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
526 | 528 | | |
| 529 | + | |
| 530 | + | |
527 | 531 | | |
528 | 532 | | |
529 | 533 | | |
| |||
568 | 572 | | |
569 | 573 | | |
570 | 574 | | |
| 575 | + | |
| 576 | + | |
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3225 | 3225 | | |
3226 | 3226 | | |
3227 | 3227 | | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
3228 | 3239 | | |
3229 | 3240 | | |
3230 | 3241 | | |
| |||
4654 | 4665 | | |
4655 | 4666 | | |
4656 | 4667 | | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
4657 | 4679 | | |
4658 | 4680 | | |
4659 | 4681 | | |
| |||
0 commit comments