Commit 3938e44
committed
fix(mimoquage): show declaration owner in /avis-cse banner
`/avis-cse/layout.tsx` also resolved SIREN from `session.user.siret`,
so during impersonation the banner showed the admin's own company (or
redirected to `/` if the admin had no SIRET). Apply the same fallback
as the declaration-remuneration layout: prefer
`session.user.impersonation.siren` when the admin is impersonating,
so the banner always reflects the declaration owner.1 parent 28af7ae commit 3938e44
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | | - | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
0 commit comments