Skip to main content

backend_only_requested

Function backend_only_requested 

Source
pub fn backend_only_requested(headers: &[(&str, &str)], elevated: bool) -> bool
Expand description

Whether a caller asked for the fields a backend_only permission hides.

Hasura reads this only from a request the admin secret authenticated, which is the whole point of the flag: a mutation marked backend-only is one a client must not be able to reach by naming a role.