diff --git a/composer.json b/composer.json index 1321d201..fa33a5f4 100755 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": "^8.1", - "silverstripe/framework": "^5", + "silverstripe/framework": "^5.2", "symfony/cache": "^6.1", "silverstripe/vendor-plugin": "^2" }, diff --git a/src/Versioned.php b/src/Versioned.php index 8e917cf0..d4dcf577 100644 --- a/src/Versioned.php +++ b/src/Versioned.php @@ -282,7 +282,7 @@ class Versioned extends DataExtension implements TemplateGlobalProvider, Resetta * @config * @var array */ - private static $non_live_permissions = ['CMS_ACCESS_LeftAndMain', 'CMS_ACCESS_CMSMain', 'VIEW_DRAFT_CONTENT']; + private static $non_live_permissions = ['CMS_ACCESS_LeftAndMain', 'CMS_ACCESS_CMSMain', 'VIEW_DRAFT_CONTENT', 'CAN_DEV_BUILD']; /** * Use PHP's session storage for the "reading mode" and "unsecuredDraftSite",