Commit ab95445
committed
fix(privileges): route ActivityPub URIs to fediverse pseudo-user check
When a remote ActivityPub actor sends a signed request, req.uid is set
to the actor's URI. Previously, non-numeric uids were treated as group
names and checked against registered-users privileges, bypassing the
expected permission model.
Remote actors are now routed to the fediverse pseudo-user (-2) check,
respecting the fediverse group's privileges on the category. This
preserves the admin-controlled UX while closing the bypass.
Assisted-by: unsloth/Qwen3.6-35B-A3B-GGUF1 parent 8c43a99 commit ab95445
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
| |||
0 commit comments