sheadawson/silverstripe-editlock
Composer 安装命令:
composer require sheadawson/silverstripe-editlock
包简介
Prevents a CMS user from editing a record that another CMS user is currently editing
README 文档
README
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.
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.
If you need to restrict locking to only specific data classes, you can specify these in your yml config as below.
EditLockControllerExtension:
lockedClasses:
- 'BlogPost'
- 'Article'
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.
统计信息
- 总下载量: 120.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2014-02-11