From d8e5037eb4fa4d42a9ee5541bd0f92e99295e3d2 Mon Sep 17 00:00:00 2001 From: Aaron Carlino Date: Fri, 1 Dec 2017 14:59:32 +1300 Subject: [PATCH] Add site tree inherited permisssions service --- _config/permissions.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_config/permissions.yml b/_config/permissions.yml index bfc78723..a81d2bcc 100644 --- a/_config/permissions.yml +++ b/_config/permissions.yml @@ -6,8 +6,13 @@ SilverStripe\Core\Injector\Injector: 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'