mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Extend content controller to make sure the correct stage is used.
The staging system is initialised inside ContentController::init(). As the DMS serving bypassed this, the stage was not set correctly, meaning permissions were not always correctly applied.
This commit is contained in:
parent
0765b90da8
commit
63e0417363
@ -804,7 +804,7 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
||||
|
||||
}
|
||||
|
||||
class DMSDocument_Controller extends Controller {
|
||||
class DMSDocument_Controller extends ContentController {
|
||||
|
||||
static $testMode = false; //mode to switch for testing. Does not return document download, just document URL
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user