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:
Andrew Short 2013-10-03 23:54:40 +10:00
parent 0765b90da8
commit 63e0417363
1 changed files with 1 additions and 1 deletions

View File

@ -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