salted-herring / silverstripe-standard-permissions
Standard permissions module for SilverStripe CMS
Installs: 1 698
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 4
Open Issues: 1
Type:silverstripe-module
Requires
- silverstripe/cms: ~3.3
- silverstripe/framework: ~3.3
This package is not auto-updated.
Last update: 2024-12-19 18:02:47 UTC
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' ]; ... }