Version: current

# Interface PermissionProvider

Used to let classes provide new permission codes. Every implementor of PermissionProvider is accessed and providePermissions() called to get the full list of permission codes.

### Direct known implementers

`CMSMain`, `GroupSubsites`, `Guestbook_Controller`, `Import1C_Controller`, `OrderExporter`, `SecurityAdmin`, `SiteConfig`, `SiteTree`, `Subsite`, `Translatable`

### Indirect known implementers

`Announcement`, `AnnouncementHolder`, `DocumentsPage`, `ErrorPage`, `Event`, `EventHolder`, `FaqHolder`, `FaqSection`, `FavoritePage`, `Guestbook`, `HomePage`, `ImportCatalog1C_Controller`, `BaseObjectCategory`, `MapObject`, `MapObjectGroup`, `MapPage`, `MediawebPage`, `Monument`, `MonumentCatalog`, `MonumentForm`, `NewsArchive`, `NewsEntry`, `NewsHolder`, `BookingAdminPage`, `Orders1CExchange_Controller`, `Page`, `PhotoAlbumPage`, `PhotoGalleryPage`, `Product`, `ProductSearchPage`, `ProfilePage`, `PublHolder`, `Publication`, `RedirectorPage`, `BookingPage`, `RegistrationPage`, `Room`, `RoomCatalog`, `SimpleOrderForm`, `SimpleOrderPage`, `Socle`, `SocleSize`, `SpecialCatalog`, `StartCatalog`, `SubscribeForm`, `CartPage`, `Subsite_Template`, `SubsitesSelectorPage`, `SubsitesVirtualPage`, `UserDefinedForm`, `VideoBankPage`, `VirtualPage`, `VirtualProduct`, `Catalog`, `CheckoutPage`, `ContactsPage`, `DocPage`

Package: sapphire\security
Located at sapphire/security/PermissionProvider.php

## Methods summary

`public` | # `providePermissions( )` Return a map of permission codes to add to the dropdown shown in the Security section of the CMS. array( 'VIEW_SITE' => 'View the site', ); Return a map of permission codes to add to the dropdown shown in the Security section of the CMS. array( 'VIEW_SITE' => 'View the site', );

### Magic methods summary

[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. -