Skip to content

Implements Silverstripe's standard permissions (canCreate, canEdit, canDelete, and canView)

License

Notifications You must be signed in to change notification settings

haunt-digital/silverstripe-standard-permissions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

silverstripe-standard-permissions

Scrutinizer Code Quality Build Status

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:

  1. Setup the yaml configuration to provide the permissions:
PublishProvider:
  classes:
    - Page
  1. The class you're using should also extend PublishProvider:
class Page {
  ...
  private static $extensions = [
    'PublishProvider'
  ];
  ...
}

About

Implements Silverstripe's standard permissions (canCreate, canEdit, canDelete, and canView)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%