Skip to content

BeechCMS


BeechCMS / @beechcms/core / reconcileLockedWidgets

Function: reconcileLockedWidgets() ​

reconcileLockedWidgets(stored, next, permissions): LockedWidgetReconciliation

The layout to persist from what an editor sent. Each widget of stored that permissions cannot use (isWidgetLockedFor) is taken back verbatim from stored; the client is never trusted on it.

Parameters ​

stored ​

DashboardLayout | null

next ​

DashboardLayout

permissions ​

EffectivePermissions

Returns ​

LockedWidgetReconciliation