---
Name: sitetreepermissions
---
SilverStripe\Core\Injector\Injector:
  SilverStripe\Security\PermissionChecker.sitetree:
    class: SilverStripe\Security\InheritedPermissions
    constructor:
      BaseClass: SilverStripe\CMS\Model\SiteTree
    properties:
      DefaultPermissions: '%$SilverStripe\SiteConfig\SiteConfigPagePermissions'
      GlobalEditPermissions:
        - CMS_ACCESS_LeftAndMain
        - CMS_ACCESS_CMSMain

---
Name: sitetreepermissions
---
SilverStripe\Core\Injector\Injector:
  SilverStripe\Security\PermissionChecker.sitetree:
    class: SilverStripe\Security\InheritedPermissions
    constructor:
      BaseClass: SilverStripe\CMS\Model\SiteTree
      CacheService: '%$Psr\SimpleCache\CacheInterface.InheritedPermissions'
    properties:
      DefaultPermissions: '%$SilverStripe\SiteConfig\SiteConfigPagePermissions'
      GlobalEditPermissions:
        - CMS_ACCESS_LeftAndMain
        - CMS_ACCESS_CMSMain
  SilverStripe\Security\InheritedPermissionFlusher:
    properties:
      Services:
        - '%$SilverStripe\Security\PermissionChecker.sitetree'

Add site tree inherited permisssions service
Add site tree inherited permisssions service
