MishkaDocument.Resources.Calculations.EffectivePermissions (Mishka Document v0.0.1)

Copy Markdown View Source

The permissions a section — one page of a document — opens with on its page, in its sitemap entry and wherever else a reader is let in: its own, else those of the nearest parent section that names some, else its document's (the workspace's). What a section names itself always wins over what it would take from above, and a section of a document that names nothing, under parents that name nothing, is public.

A parent section counts while it exists, whatever its review status. The sections and documents above are read only for the sections that name nothing themselves, once per site for the whole batch.

calculate :effective_permissions, {:array, :string}, EffectivePermissions

Summary

Functions

describe(opts)

Callback implementation for Ash.Resource.Calculation.describe/1.

has_calculate?()

has_expression?()

Callback implementation for Ash.Resource.Calculation.has_expression?/0.

init(opts)

Callback implementation for Ash.Resource.Calculation.init/1.

strict_loads?()

Callback implementation for Ash.Resource.Calculation.strict_loads?/0.