From 1e0579cbe433929e3f87a3b01ba282b0c1e15584 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 20 Dec 2010 00:00:49 +0000 Subject: [PATCH] BUGFIX Removing form actions from $allowed_actions in AssetAdmin, CMSMain, LeftAndMain - handled through Form->httpSubmission() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@115185 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/AssetAdmin.php | 2 -- code/CMSMain.php | 7 ------- code/LeftAndMain.php | 2 -- 3 files changed, 11 deletions(-) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index 520d483f..8afdd58b 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -23,10 +23,8 @@ class AssetAdmin extends LeftAndMain { public static $allowed_max_file_size; static $allowed_actions = array( - 'deleteUnusedThumbnails', 'doUpload', 'getsubtree', - 'save', 'uploadiframe', 'UploadForm', 'deleteUnusedThumbnails' => 'ADMIN', diff --git a/code/CMSMain.php b/code/CMSMain.php index 9e074e99..d2776093 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -28,23 +28,16 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr static $allowed_actions = array( 'addmember', - 'doAdd', 'buildbrokenlinks', 'compareversions', 'createtranslation', - 'delete', - 'deletefromlive', 'duplicate', 'duplicatewithchildren', 'getversion', 'publishall', - 'restore', - 'revert', - 'rollback', 'sidereports', 'SideReportsForm', 'submit', - 'unpublish', 'versions', 'EditForm', 'AddForm', diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 0614dbda..e84d420b 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -51,7 +51,6 @@ class LeftAndMain extends Controller { 'getsubtree', 'myprofile', 'printable', - 'save', 'show', 'Member_ProfileForm', 'EditorToolbar', @@ -59,7 +58,6 @@ class LeftAndMain extends Controller { 'BatchActionsForm', 'batchactions', 'AddForm', - 'doAdd' ); /**