salted-herring/silverstripe-standard-permissions
Composer 安装命令:
composer require salted-herring/silverstripe-standard-permissions
包简介
Standard permissions module for SilverStripe CMS
README 文档
README
Implements Silverstripe's standard permissions (canCreate, canEdit, canDelete, and canView)
Install
The module can be installed via composer:
composer require salted-herring/silverstripe-standard-permissions
Usage
Any object that needs to use permissions, should do two things:
- Setup the yaml configuration to provide the permissions:
PublishProvider: classes: - Page
- The class you're using should also extend
PublishProvider:
class Page { ... private static $extensions = [ 'PublishProvider' ]; ... }
统计信息
- 总下载量: 1.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-07