mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
00bffb2548
The DMS document controller had been changed to subclass ContentController to correctly initialise the versioned stage. However, this had the side effect of preventing access to documents when the "Stage" stage was selected. ContentController::init() calls the SiteTree::canViewStage() method, which controls access when on the stage. However, since the data record was non-existant, the method would always return false, preventing access to documents. This fix removes the subclassing of ContentController and just directly initialises the versioned stage. |
||
---|---|---|
.. | ||
cms | ||
exceptions | ||
interface | ||
tools | ||
DMS.php | ||
DMSDocument_versions.php | ||
DMSDocument.php | ||
DMSShortcodeHandler.php | ||
DMSSiteTreeExtension.php | ||
DMSTag.php |