New in 1.25.0


Determines whether a CMS object can be altered by the editor in the current working copy.

Scrivito.canEdit works like Scrivito.canWrite in that it determines whether the content in a working copy can be changed by the current editor. For this to be the case, the UI must be present, and the editor must be on a working copy as its owner, or have the “can edit” permission for it. Additionally, canEdit takes account of the workflow to which the passed-in CMS object is subject. This check can be used, for example, to prevent editors from rendering a working copy unpublishable by changing content through custom editing components or custom dialogs.


obj (Obj) – The Obj instance to be checked.


booleantrue if the CMS object is editable, otherwise false.