type
GlobalAccess
type GlobalAccess struct {
// Read controls global reads and may return a Where decision.
Read AccessRule
// ReadVersions controls version-history reads and may return a Where decision.
// When omitted, Read is used.
ReadVersions AccessRule
// Update controls global updates and may return a Where decision for an
// existing singleton.
Update AccessRule
// Publish controls publishing and atomic published-global edits. When
// omitted, Update is used.
Publish AccessRule
// Unpublish controls moving a published global back to draft. When omitted,
// Update is used.
Unpublish AccessRule
}Access rules for reading, updating, publishing, and unpublishing a global.
ReadAccessRule- Control reads of the singleton.
ReadVersionsAccessRule- Control version-history reads; defaults to Read.
UpdateAccessRule- Control singleton updates.
PublishAccessRule- Control publishing and atomic published edits; defaults to Update.
UnpublishAccessRule- Control moving a published singleton to draft; defaults to Update.