# `Alternera.Resource.Checks.TenantRole`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_resource_sdk/lib/alternera/resource/checks/tenant_role.ex#L1)

Whether the actor's role in the tenant allows the action: a read, and a
generic action in the resource's `read_only_actions`, needs any role
there, everything else needs `tenant_admin`, as the host decides
(`c:Alternera.Resource.Host.role_allows?/3`).

The tenant comes from the query or changeset, which attribute multitenancy
always fills. A check that finds none refuses and logs a warning.

# `eager_evaluate?`

# `init`

# `prefer_expanded_description?`

# `requires_original_data?`

# `strict_check`

# `type`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
