Commit 8ce4d88
Authenticate User before action
Previously we would fall back on authorization to determine if a user
should be able to access a certain endpoint. We should be
authenticating the user first prior to checking if the specific user is
authorized to access a certain endpoint
Co-Authored-By: Elia Schito <elia@schito.me>1 parent f6a375c commit 8ce4d88
2 files changed
Lines changed: 19 additions & 0 deletions
File tree
- lib/decorators
- backend/controllers/spree/admin
- frontend/controllers/spree
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments