# `MishkaCmsCore.Accounts.Checks.ExtensionInteraction`
[🔗](https://github.com/mishka-group/mishka_cms_core/blob/v0.0.1/lib/mishka_cms_core/accounts/__checks/extension_interaction.ex#L5)

This check is true if the access is coming from a relationship load.

This check allows resources to be accessed through relationship loads from
other resources, without creating hard dependencies. It simply checks if
Ash's `accessing_from` context is present, which indicates the access is
happening through a relationship load.

## Usage in policies

```elixir
policies do
  bypass ExtensionInteraction do
    authorize_if always()
  end
end
```

This pattern allows any resource to load related data through relationships
while maintaining proper authorization boundaries. The check doesn't
distinguish between "core" and "extension" resources - it simply allows
relationship-based access.

## How it works

When Ash loads a relationship (e.g., `Blogger.user`), it automatically sets
`accessing_from: %{name: :user, source: MishkaBlog.Blogger}` in the query
context. This check detects that context and grants access.

# `eager_evaluate?`

# `init`

# `prefer_expanded_description?`

# `requires_original_data?`

# `strict_check`

# `type`

---

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