type

OperationCapabilities

Boolean operation permissions for one evaluated resource state.

Properties

PropertyTypeDescription
AdminboolThe Admin value.
CreateboolThe Create value.
ReadboolThe Read value.
ReadVersionsboolThe ReadVersions value.
UpdateboolThe Update value.
DeleteboolThe Delete value.
DuplicateboolThe Duplicate value.
PublishboolThe Publish value.
UnpublishboolThe Unpublish value.
RestoreDeletedboolThe RestoreDeleted value.
DeletePermanentboolThe DeletePermanent value.
SelectAllboolThe SelectAll value.

How it works

A later mutation always reauthorizes; these booleans are not a permission lease.

Full signature

type OperationCapabilities struct { Admin bool `json:"admin"` Create bool `json:"create"` Read bool `json:"read"` ReadVersions bool `json:"readVersions"` Update bool `json:"update"` Delete bool `json:"delete"` Duplicate bool `json:"duplicate"` Publish bool `json:"publish"` Unpublish bool `json:"unpublish"` RestoreDeleted bool `json:"restoreDeleted"` DeletePermanent bool `json:"deletePermanent"` SelectAll bool `json:"selectAll"` }

Source protocol/envelope.go:354