Prevents a CMS user from editing a record that another CMS user is currently editing
PHP JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_config initial files Feb 11, 2014
code
images initial files Feb 11, 2014
javascript FIX Removal of existing lock timer on form load Mar 7, 2014
.editorconfig
.scrutinizer.yml
LICENSE.md
README.md Update README.md Sep 5, 2015
_config.php
composer.json initial files Feb 11, 2014

README.md

SilverStripe Edit Lock

Requirements

  • SilverStripe ~3.1

Maintainers

Description

Prevents a CMS user from editing a record that another CMS user is currently editing, to avoid change conflicts/data loss.

Screenshot

Installation

Download this module into the root of your project. The module folder must be named "editlock". Run dev/build.

Composer: require "sheadawson/silverstripe-editlock": "1.0.x"

Usage

The module will take effect on any DataObject's standard CMS edit form out of the box. A locked object will display a readonly version of the edit form and a message explaining why it's locked and who is editing it. Editing will be re-enabled a maximum of 15 seconds after the original editor has navigated away from the edit form.

Edit anyway override

Users with the "edit anyway" permission are given the option to override the lock and edit the record anyway, after being made aware of the risks. This permission can be applied to user groups in the Security section of the CMS.