mirror of
https://github.com/thegeneralist01/archivr
synced 2026-12-04 18:56:44 +01:00
Hiding an entry from a role (collection membership bits) only filtered the list, search and children queries; the entry could still be fetched, edited, deleted, summarized or tagged by uid, and its artifacts and blobs downloaded. - database::caller_can_access_entry / caller_can_access_blob share one SQL predicate with the list queries (children inherit the parent's membership; ADMIN/OWNER see everything; requires_auth only gates guests) - routes::ensure_entry_visible gates entry detail, summary GET/POST, artifacts, media tokens, favicon, tags, entry collections, rename, delete, thread title, rearchive and collection membership; blobs use the blob rule - hidden entries are a 404, indistinguishable from unknown uids - tag tree counts only include entries visible to the caller - rearchive of an unknown entry is now a 404 for everyone (no doomed job row) - test_support: guest_session is a true guest-only account; shared HTTP fixture helpers moved out of jobs.rs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| archivr-cli | ||
| archivr-core | ||
| archivr-server | ||