Skip to main content

can_open

Function can_open 

Source
pub fn can_open<P>(cx: &Cx) -> bool
where P: Page,
Expand description

Whether the current request may open the page P: the request’s panel mounts P, and sign-in and PageDef::access allow it, the checks the page’s GET makes.

A form a page renders posts to an app route, which PageDef::access does not cover; the route asks can_open::<P>(cx) itself.