pub async fn resolve_context(
db: &PgPool,
me: &Actor,
page: &PageContext,
) -> AppResult<PageContext>Expand description
Resolves a page context that a client sent. The client’s identifiers
are hints: every one of them goes through the read guards of
services::access with the rights of me, and only what me may read
stays. An identifier of a restricted group that me cannot see is
dropped exactly like one that does not exist: the same queries run, the
result looks the same and carries no trace of it. Texts typed on the page
(query, filter values) are the user’s own and pass through.