Version: current

     1 <?php
     2 /**
     3  * Used to let classes provide new permission codes.
     4  * Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of permission codes.
     5  * @package sapphire
     6  * @subpackage security
     7  */
     8 interface PermissionProvider {
     9     /**
    10      * Return a map of permission codes to add to the dropdown shown in the Security section of the CMS.
    11      * array(
    12      *   'VIEW_SITE' => 'View the site',
    13      * );
    14      */
    15     function providePermissions();
    16 }
    17
    18 ?>

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -