Commit badc6fc
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 13230c5 commit badc6fc
File tree
2 files changed
+19
-0
lines changed- lib/decorators
- backend/controllers/spree/admin
- frontend/controllers/spree
2 files changed
+19
-0
lines changedLines 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