# `MishkaDocument.Resources.Calculations.AuthoredByMaster`
[🔗](https://github.com/mishka-group/mishka_document/blob/v0.0.1/lib/mishka_document/resources/__calculations/authored_by_master.ex#L5)

Whether an issue comment was written by a master — a user with no site.

A tenant admin can read a master's comment but not change it (see
`MishkaDocument.Resources.Validations.MasterCommentReadOnly`), so a tenant's comment list needs
to know which comments to draw without Edit and Delete. Loading `:contributor` under a tenant
returns `nil` for a master, the same as for no author, so this asks
`MishkaCmsCore.Accounts.Calculations.ByMaster` about `:contributor_id` instead.

A comment whose contributor was deleted has no `contributor_id` left (`on_delete :nilify`), so
it is no longer a master's.

# `describe`

# `has_calculate?`

# `has_expression?`

# `init`

# `master_ids`

```elixir
@spec master_ids([Ash.UUID.t() | nil]) :: {:ok, MapSet.t()} | {:error, term()}
```

See `MishkaCmsCore.Accounts.Helper.master_ids/1`.

# `strict_loads?`

---

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