MishkaCmsCore.Runtime.Resources.Changes.SiteFromTenant (Mishka CMS Core v0.0.1)

Copy Markdown View Source

Writes the tenant the action runs under into the record's site_id, replacing whatever was sent.

A site user's create or update names no site of its own: the site is the one they are signed in to. An action with no tenant (a master's) is left as it is, so the site_id it was given stays.

create :create do
  change MishkaCmsCore.Runtime.Resources.Changes.SiteFromTenant
end