From ea7b2c0471a0f8d4ac848632a9ddbce326842d79 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 26 Jun 2013 04:57:36 +1200 Subject: [PATCH] BUG add $allowed_actions for both DMSDocumentAddController and DMSUploadField --- code/cms/DMSDocumentAddController.php | 4 ++++ code/cms/DMSUploadField.php | 3 +++ 2 files changed, 7 insertions(+) diff --git a/code/cms/DMSDocumentAddController.php b/code/cms/DMSDocumentAddController.php index 158800b..6dfad5d 100644 --- a/code/cms/DMSDocumentAddController.php +++ b/code/cms/DMSDocumentAddController.php @@ -9,6 +9,10 @@ class DMSDocumentAddController extends LeftAndMain { public static $tree_class = 'SiteTree'; static $allowed_extensions = array(); + private static $allowed_actions = array ( + "getEditForm", + ); + /** * Add an array of additional allowed extensions * @static diff --git a/code/cms/DMSUploadField.php b/code/cms/DMSUploadField.php index beff388..d3a92f4 100644 --- a/code/cms/DMSUploadField.php +++ b/code/cms/DMSUploadField.php @@ -13,6 +13,9 @@ * @package dms */ class DMSUploadField extends UploadField { + private static $allowed_actions = array ( + "upload", + ); protected $folderName = 'DMSTemporaryUploads';