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.