Commit 9fe4132
authored
fix: raise not-found for unauthorized conversations (#1059)
## Summary
- raise `ActiveRecord::RecordNotFound` when accessing conversations not
belonging to the current user
- add request spec to ensure non-participants receive a 404 response
## Testing
- `bin/dc-run bundle exec rubocop` *(fails: docker: command not found)*
- `bin/codex_style_guard` *(fails: bundler: command not found: rubocop)*
- `bin/dc-run bundle exec brakeman --quiet --no-pager` *(fails: docker:
command not found)*
- `bin/dc-run bundle exec bundler-audit --update` *(fails: docker:
command not found)*
- `bin/dc-run bin/i18n` *(fails: docker: command not found)*
- `bin/dc-run bin/ci` *(fails: docker: command not found)*
------
https://chatgpt.com/codex/tasks/task_e_68b1f69223b88321bb27a78b2da20f6dFile tree
2 files changed
+14
-1
lines changed- app/controllers/better_together
- spec/requests/better_together
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| |||
0 commit comments