mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5005 from dhensby/pulls/modeladmin-reading-mode
Set the stage reading mode in LeftAndMain
This commit is contained in:
commit
eaf9d32bc7
@ -444,6 +444,9 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
// The user's theme shouldn't affect the CMS, if, for example, they have
|
||||
// replaced TableListField.ss or Form.ss.
|
||||
Config::inst()->update('SSViewer', 'theme_enabled', false);
|
||||
|
||||
//set the reading mode for the admin to stage
|
||||
Versioned::set_reading_mode('Stage');
|
||||
}
|
||||
|
||||
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {
|
||||
|
Loading…
Reference in New Issue
Block a user