Commit e96d6e2
authored
fix(web): enforce media ACL on request path, not resolved symlink (#173)
* fix(web): enforce media ACL on request path, not resolved symlink
When media files are sharded symlinks (pointing to _shared/XX/),
resolve() follows the symlink and the ACL tried to parse "_shared"
as a chat ID — always failing with 403 for restricted users.
Admin was unaffected because unrestricted users skip ACL entirely.
Fix: enforce ACL on the original request path which contains the
actual chat folder, not the resolved filesystem target.
* fix(web): fix bright blue safe-area on mobile Safari
Body had a blue gradient that showed through safe-area padding on
iOS. Moved gradient to login page only; app body uses slate-900
matching theme-color meta tag.1 parent 20e2ca3 commit e96d6e2
4 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
951 | 953 | | |
952 | 954 | | |
953 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
0 commit comments