https://github.com/punktde/editconflictprevention
Prevents edit conflicts when multiple editors are working on the site by either warn the user or deny editing.
https://github.com/punktde/editconflictprevention
editors neoscms workspaces
Last synced: 7 months ago
JSON representation
Prevents edit conflicts when multiple editors are working on the site by either warn the user or deny editing.
- Host: GitHub
- URL: https://github.com/punktde/editconflictprevention
- Owner: punktDe
- License: mit
- Created: 2020-09-03T09:14:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T10:27:59.000Z (almost 2 years ago)
- Last Synced: 2024-11-16T17:20:46.186Z (about 1 year ago)
- Topics: editors, neoscms, workspaces
- Language: PHP
- Homepage:
- Size: 622 KB
- Stars: 14
- Watchers: 8
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PunktDe.EditConflictPrevention
[](https://travis-ci.com/punktDe/editconflictprevention) [](https://packagist.org/packages/punktDe/editconflictprevention) [](https://packagist.org/packages/punktDe/editconflictprevention) [](https://packagist.org/packages/punktDe/editconflictprevention)
This package helps preventing edit conflicts when several editors are working on content simultaneously.
### Information about changes of the current document in other workspaces
When changes in other workspaces exist on the same document, a warning is displayed in the upper toolbar.

Clicking that warning opens a modal, showing a list of changed nodes and where they have been changed. Contact information from Neos Party is displayed to make it easier to communicate.

### Prevent the editor to do conflicting changes
There are also privilege targets available which prevents editing a document and all containing content nodes when changes in other workspaces are detected. To prevent an editor from editing such pages, add the following privilege configuration to your `Policy.yaml`
```yaml
roles:
'Neos.Neos:AbstractEditor':
privileges:
-
privilegeTarget: 'PunktDe.EditConflictPrevention.EditNodeWithChangesInOtherWorkspaces'
permission: DENY
-
privilegeTarget: 'PunktDe.EditConflictPrevention.EditNodePropertiesWithChangesInOtherWorkspaces'
permission: DENY
```
## Installation
```bash
composer require punktde/editconflictprevention
```
## Configuration
`excludedDocumentTypes`: List the document types here, that you like to exclude from detecting conflicts.