Skip to content

Commit

Permalink
ENH add CAN_DEV_BUILD to non_live_permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewandante committed Nov 3, 2023
1 parent 79bfcc4 commit 7a8088a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"require": {
"php": "^8.1",
"silverstripe/framework": "^5",
"silverstripe/framework": "^5.2",
"symfony/cache": "^6.1",
"silverstripe/vendor-plugin": "^2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Versioned.php
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7a8088a

Please sign in to comment.