has_capability
has_capability
Whether the client declared name. A convenience over
declared_capabilities() for a single check.
Parameters
body_params
A SWML request body, or a user variables dict.
name
Capability name, such as "display_content".
Returns
bool — True only when the capability was explicitly declared truthy.
Example
Part of the client capabilities module.