Implements Silverstripe's standard permissions (canCreate, canEdit, canDelete, and canView)
The module can be installed via composer:
composer require salted-herring/silverstripe-standard-permissions
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'
];
...
}