From 044bdb06913dba7ed8d540dcf420221fea586b52 Mon Sep 17 00:00:00 2001 From: Andrew Paxley Date: Fri, 3 Nov 2023 16:46:47 +1300 Subject: [PATCH] ENH add CAN_DEV_BUILD to non_live_permissions --- src/Versioned.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",